Inheritance
Inheritance
Inheritance is a way by which certain objects inherit attributes or behaviors from other objects. Inheritance is also sometimes called subclassing, since one class is a subclass of another. The subclass, or child class, inherits characteristics from its superclass or parent class. The parent class is called the base class and the child class is called the derived class.
Above diagram shows the process of inheritance.
Inheritance may be of different types as single inheritance, multiple inheritance, multi-level, hierarchical inheritance.
Posted in Computer Science, Information Technology, Object Oriented Programming, Object Oriented Programming |
