Difficulty: Easy
Correct Answer: parent class
Explanation:
Introduction / Context:Object-oriented programming (OOP) organizes code into classes related by inheritance. Familiarity with the vocabulary—base class, derived class, parent class, child class, superclass, subclass—helps you read documentation and design hierarchies accurately across languages like C++, Java, and Python.
Given Data / Assumptions:
Concept / Approach:
Step-by-Step Reasoning:
Map terms: base ↔ parent/superclass; derived ↔ child/subclass.Select the synonym that matches 'base class': 'parent class'.Eliminate terms that actually refer to the inheriting class.Verification / Alternative check:
Check standard C++ literature: a derived class lists its base classes in its declaration (class B : public A {}), where A is the base/parent.Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
parent class
Discussion & Comments