Question: QUESTION 6 Subclasses / inheritance can have negative consequences because ( select all correct answer ( s ) and no incorrect answer ( s )

QUESTION 6
Subclasses/inheritance can have negative consequences because (select all correct answer(s) and no incorrect answer(s) 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 malicious/careless 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!