Inheritance

What is inheritance? Inheritance is the process of deriving quality from the parent. In object-oriented programming (OOP), it is the process of creating a class from another class called a base class. So that derived class(child class) can acquire the property, methods of a base class. Derive (a quality, characteristic, or predisposition) genetically from one’s parents or ancestors. We can say that inheritance would be … Continue reading Inheritance