Computer Science, asked by ananyamohandas03, 1 month ago

With the help of examples write a explanation on Inheritance in C++​

Answers

Answered by Edumasti
0

Answer:

Inheritance is a process in which one object acquires all the properties and behaviors of its parent object automatically.

In such way, you can reuse, extend or modify the attributes and behaviors which are defined in other class.

Example

  • Single Inheritance.
  • Multiple Inheritance.
  • Hierarchical Inheritance.
  • Multilevel Inheritance.
  • Hybrid Inheritance (also known as Virtual Inheritance)
Similar questions