There's more...

In object-oriented programming, a subclass is a class that inherits all properties from a superclass, whether they are objects or methods. An alternative name to subclass is derived class. Inheritance is the specific term that indicates this process by which the daughter or derived classes inherit the properties of parent classes or superclasses.

You can think of a subclass as a particular genre of its superclass; in fact, it can use methods and/or attributes, as well as redefine them through overriding.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset