asked 125k views
0 votes
Multiple inheritance means,

(a) one class inheriting from more super classes
(b) more classes inheriting from one super class
(c) more classes inheriting from more super classes
(d) None of the above
(e) (a) and (b) above.

asked
User GHH
by
8.1k points

1 Answer

2 votes

Final answer:

Multiple inheritance is a concept where a class inherits from more than one super class, providing flexibility in program design but can also complicate the hierarchy.

Step-by-step explanation:

Multiple inheritance refers to the concept where a class can inherit features from more than one parent class. The correct choice that defines multiple inheritance in object-oriented programming is (a) one class inheriting from more super classes. This allows a class to inherit methods and attributes from multiple classes, which can lead to a more complex hierarchy and can introduce certain problems like the Diamond Problem. However, it can also provide greater flexibility in program design.

answered
User Sean Sexton
by
8.5k points