हिंदी

Explain the different types of inheritance? - Computer Science 1

Advertisements
Advertisements

प्रश्न

Explain the different types of inheritance?

Explain different types of Inheritance. (Any three)

Explain any three types of Inheritance in brief with suitable diagrams.

आकृति
स्पष्ट कीजिए
Advertisements

उत्तर

There are different types of inheritance viz., Single inheritance, Multiple inheritance, Multilevel inheritance, hybrid inheritance, and hierarchical inheritance.

  1. Single Inheritance: When a derived class inherits only from one base class, it is known as single inheritance.
    It has the form:
  2. Multiple Inheritance: When a derived class inherits from multiple base classes it is known as multiple inheritances.
    It has the form:
  3. Hierarchical inheritance: When more than one derived class is created from a single base class, it is known as Hierarchical inheritance.
    It has the form:
  4. Multilevel Inheritance: The transitive nature of inheritance is itself reflected by this form of inheritance. When a class is derived from a class that is a derived class then it is referred to as multilevel inheritance.
    It has the form:
  5. Hybrid inheritance: When there is a combination of more than one type of inheritance, it is known as hybrid inheritance.
    It has the form:
shaalaa.com

Notes

Students should refer to the answer according to their question and preferred marks.

  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 16: Inheritance - Evaluation - Section - D [पृष्ठ २७३]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
अध्याय 16 Inheritance
Evaluation - Section - D | Q 1. | पृष्ठ २७३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×