Define inheritance with reference to object oriented programming
Answers
Answered by
1
Inheritance is one of the principle of object oriented programming which provides re-usability facility. Through the process of inheritance one class can use functions of other class and vice-versa.
Answered by
1
In object-oriented programming, inheritance enables new objects to take on the properties of existing objects. A class that is used as the basis for inheritance is called a superclass or base class. A class that inherits from a superclass is called a subclass or derived class. The terms parent class and child class are also acceptable terms to use respectively. A child inherits visible properties and methods from its parent while adding additional properties and methods of its own.
Similar questions