Question: Consider a Shape inheritance hierarchy that begins with base class Shape, which has subclasses TwoDimensionalShape and ThreeDim - ensional - Shape. Class TwoDimensionalShape has subslasses
Consider a Shape inheritance hierarchy that begins with base class Shape, which has subclasses TwoDimensionalShape and ThreeDimensionalShape. Class TwoDimensionalShape has subslasses Circle, Square and Triangle. Class ThreeDimensionalShape has subclasses Sphere, Cube and Tetrahedron. Which of the following statements is false?
a Each Shape is either a TwoDimensionalShape or a ThreeDimensional Shape.
b The third level of this hierarchy contains specific types of TwoDimensional Shapes and ThreeDimensionalShapes.
c In this hierarchy, a Triangle is a TwoDimensionalShape and is a Shape, while a Sphere is a ThreeDimensionalShape and is a Shape.
d A TwoDimensionalShape is a Square.
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
