Which of the following is not a type of inheritance?

By Priyanshu Vaish|Updated : June 29th, 2022

Which of the following is not a type of inheritance?

  1. Multipath
  2. Multilevel
  3. Distributive
  4. Hierarchical

 

Answer: C. Distributive

Distributive is not a type of inheritance.

Solution

The answer to the question- Which of the following is not a type of inheritance? A new class, referred to as the Derived Class, is created through inheritance from an existing class, referred to as the Base Class. The most significant benefit of Inheritance is the reusability of code, among its many other benefits. Instead of creating new Objects from scratch, new code can be based on the work of other developers, introducing only the necessary additional functionality. It saves time and effort to reuse existing classes. Object-Oriented Programming languages provide for a variety of inheritance implementations, including the following:

  • Single Inheritance
  • Multi-Level Inheritance
  • Hierarchical Inheritance
  • Hybrid Inheritance
  • Multipath inheritance
  • Multiple Inheritance

☛ Related Questions:

Comments

write a comment

Follow us for latest updates