Name the type of inheritance if Sports, Coach, Player are C++ classes and (→)…

2022

Name the type of inheritance if Sports, Coach, Player are C++ classes and (→) denotes inheritance.

  1. A.

    Multiple Inheritance

  2. B.

    Multi-level Inheritance

  3. C.

    Doubly Inheritance

  4. D.

    Hybrid Inheritance

Attempted by 507 students.

Show answer & explanation

Correct answer: B

In multi-level inheritance, a class is derived from another class, which itself is derived from another class. Here, Player is derived from Coach, and Coach is derived from Sports, forming a chain of inheritance.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Up Lt Grade Assistant Teacher 2025