Solved

Consider the Following Class Hierarchy: What Is Wrong with This

Question 56

Multiple Choice

Consider the following class hierarchy: Consider the following class hierarchy:   What is wrong with this class hierarchy definition?  A) Nothing is wrong with the code. B) There should be more subclasses of the Shape class than just Triangle. C) There cannot be any subclasses of the Shape class. D) It is not possible to use super in the Triangle constructor. What is wrong with this class hierarchy definition?


A) Nothing is wrong with the code.
B) There should be more subclasses of the Shape class than just Triangle.
C) There cannot be any subclasses of the Shape class.
D) It is not possible to use super in the Triangle constructor.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions