Solved

Consider the Following Class Hierarchy: What Is Wrong with This

Question 95

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents