SOFTWARE DESIGN
OBJECT ORIENTED DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
A subclass inherits from the superclass
|
Attributes, links
|
|
Attributes, operations
|
|
Attributes, operations, relationships
|
|
Relationships, operations, links
|
Explanation:
Detailed explanation-1: -A subclass will only inherit the structure (methods and properties) of it’s superclass and it’s superclass’s superclasse’s. If by associated classes you mean import. The subclass does not inherit the super’s imports.
Detailed explanation-2: -Superclasses are also called parent classes. Subclasses may also be called child classes or just derived classes. Of course, you can again inherit from a subclass, making this class the superclass of the new subclass. This leads to a hierarchy of superclass/subclass relationships.
There is 1 question to complete.