Class
Class
In object-oriented programming, a class is a template definition of the methods and variables in a particular kind of object. Thus, an object is a specific instance of a class; it contains real values instead of variables.
• A class is called subclass if it inherits all or some of the characteristics of the class and now I relation to each subclass, the class becomes the superclass.
• Subclasses can also define their own methods and variables that are not part of their superclass.
• The structure of a class and its subclasses is called the class hierarchy.
In the above diagram, the oval represents the class, methods and variables are the member of the class which is bounded together.
Posted in Computer Science, Information Technology, Object Oriented Programming, Object Oriented Programming |
