In class-based object modeling, what is multiple inheritance?

21 views
  • A class having multiple methods
  • A class deriving attributes and behaviors from more than one parent class (Correct Answer)
  • A class without attributes
  • A class used in database tables

Explanation

Multiple inheritance allows a class to inherit properties and behaviors from multiple parent classes, which can enhance code reuse but may also lead to complexity and ambiguity.

Comments (0)

No comments yet. Be the first to comment!

Want to practice more?

Explore thousands of MCQs across every exam category on Exams Nepal.

Find More MCQs