1.

Write a note on inheritance ​

Answer»

In object-oriented PROGRAMMING, inheritance is the concept that when a class of objects is defined, any SUBCLASS that is defined can inherit the DEFINITIONS of one or more general CLASSES. This means for the programmer that an object in a subclass need not carry its own definition of data and methods that are generic to the class (or classes) of which it is a part. This not only speeds up program development; it also ensures an inherent validity to the defined subclass object (what works and is consistent about the class will also work for the subclass).



Discussion

No Comment Found