Object-Oriented Programming (OOP)
What is the name for an OOP feature where a class can inherit properties and behaviors from more than one parent class?
Difficulty: Hard
About this MCQ
This Hard Object-Oriented Programming (OOP) MCQ checks one syllabus fact.
The question is: “What is the name for an OOP feature where a class can inherit properties and behaviors from more than one parent class?”
The accepted answer is B. Multiple inheritance. Multiple inheritance refers to an OOP feature where a class can inherit properties and behaviors from more than one parent class.
- A. Polymorphism
Why not A: “Polymorphism” is not correct. The accepted answer is B. Multiple inheritance. Multiple inheritance refers to an OOP feature where a class can inherit properties and behaviors from more than one parent class.
- B. Multiple inheritance ✓
- C. Encapsulation
Why not C: “Encapsulation” is not correct. The accepted answer is B. Multiple inheritance. Multiple inheritance refers to an OOP feature where a class can inherit properties and behaviors from more than one parent class.
- D. Class
Why not D: “Class” is not correct. The accepted answer is B. Multiple inheritance. Multiple inheritance refers to an OOP feature where a class can inherit properties and behaviors from more than one parent class.
Correct answer
B. Multiple inheritance
Explanation
Multiple inheritance refers to an OOP feature where a class can inherit properties and behaviors from more than one parent class.
Source: Object-Oriented Programming (OOP) Official Reference Guide
Tags: computer science, oop, object-oriented programming, software design
Submitted by: MCQsHub Editorial
Related MCQs
- The concept in which a special method automatically invoked when an object is destroyed, used to release resou...
- Identify the correct definition of Destructor.
- What term describes the following? a class member that belongs to the class itself rather than to any individu...
- In computer science, Static member refers to which of the following?
- Select the correct name for: a keyword that controls the visibility and accessibility of a class's members, su...
- Which statement correctly explains Access modifier?