Difficulty: Easy
Correct Answer: inheritance
Explanation:
Introduction / Context:Object-oriented programming (OOP) emphasizes modeling with objects and relationships. Core features typically cited are encapsulation, inheritance, and polymorphism. Among the listed choices, we select the capability that is essential to OOP and distinguishes it from purely procedural languages.
Given Data / Assumptions:
Concept / Approach:
Step-by-Step Solution:
Identify OOP hallmark among options → inheritance.Eliminate distractors unrelated to OOP.Conclude that “inheritance” is the minimum requirement listed that aligns with OOP.Verification / Alternative check:
Languages regarded as OOP (C++, Java, C#) support inheritance and polymorphism; procedural languages without inheritance are not considered OOP.Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
inheritance
Discussion & Comments