In Object Oriented Programming scheme, Inheritance is all about Properties and Behaviour sharing between two or multiple Objects. When any class inherits all the properties and behavior of any class, called Derived class or Child class and whose properties and behaviors are inherited, called Parent class or Superclass. Inheritance is a Mechanism where one Object acquires the properties and behaviour of other Object. This represents IS-A relationship, also knoiwn as parent-child relationship. This can be multiple types, are as follows: 1. Single : When …
Social Profiles