Which concept allows a class to inherit properties and behaviors from multiple…

2025

Which concept allows a class to inherit properties and behaviors from multiple classes?

  1. A.

    Encapsulation

  2. B.

    Inheritance

  3. C.

    Polymorphism

  4. D.

    Multiple Inheritance

Attempted by 119 students.

Show answer & explanation

Correct answer: D

Multiple Inheritance is an OOP concept in which a class can inherit properties and behaviors from more than one parent class.

This allows the derived class to access members of multiple base classes.

Example:

class A
{
};

class B
{
};

class C : public A, public B
{
};

Here, class C inherits from both class A and class B. Therefore, C can use features of both parent classes.

This concept is called Multiple Inheritance.

Explore the full course: Bpsc