Cs 1102 DF 4 (2).docx - Class and object are the basic...

This preview shows page 1 - 2 out of 6 pages.

The preview shows page 1 - 2 out of 6 pages.
Class and object are the basic concepts of object-oriented programming. You can usethem to mock the real-life entities and scenarios to fit in the digital world.Class:A class is a user-defined blueprint or prototype of the business entities to be used andreused in programming instead of duplicating your objects. The class can containencapsulated information or public information of the objects inside it. The validity ofaccess to this information can be controlled by Modifiers Like (public, private, etc.,). Aclass must have a name to identify its objective. Classes can inherit each other. Theinherited class is called Parent class or superclass and the class that inherits from it iscalled a child class. A class can extend one class but can implement multi interfaces.You can include properties, fields, methods, and subroutines in the class to be used laterwhen you initialize a reference object from that class.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 6 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
Jane
Tags
Object Oriented Programming, mycar, public class Car, public information of the objects

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture