Sections


Main-Menu

header image

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.

class.GIF

In the above diagram, the oval represents the class, methods and variables are the member of the class which is bounded together.


Related Articles :



Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Shaadi.com Matrimony - Register for FREE