A. ✅ True – A class acts as a blueprint and can be used to create many independent objects (instances).
→ Correct
B. ❌ False – Objects of the same class share the same set of methods; behavior is defined in the class. Attributes can differ, but not methods unless using advanced techniques like monkey patching (not typical or recommended).
C. ❌ False – Adjectives describe attributes (properties), not methods (which describe behavior). This statement is misleading.
D. ✅ True – A subclass extends or specializes the behavior of a superclass.
→ Correct
Explanation:
The correct answers are:
A: the same class can be used many times to build a number of objects
A class acts as a blueprint in Python.
Multiple objects (instances) can be created from the same class, each having its own state and data.
D: a subclass is usually more specialized than its superclass
In object-oriented programming, a subclass inherits from a superclass and adds more specific functionality or overrides behavior.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Abbribas
1Â month, 2Â weeks agoflthymcnsty
8Â months, 3Â weeks ago