Question: QUESTION 6 Subclasses / inheritance can have negative consequences because ( select all correct answer ( s ) and no incorrect answer ( s )
QUESTION
Subclassesinheritance can have negative consequences because select all correct answers and no incorrect answers to get credit:
A A subclass depends on the implementation details of its superclass.
B Introduces potential issues with the equality contract.
C Difficult for superclass to maintain invariants in face of maliciouscareless subclass.
D Inheritance is forever, cannot change the interface in subsequent releases.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
