Question: c++ code Create a new class RectangleFromSimpleGeometricObject in example 1 and extend it with SimpleGeometricObject class. Create an object for this class in the TestCircleRectangle
c++ code Create a new class RectangleFromSimpleGeometricObject in example 1 and extend it with SimpleGeometricObject class. Create an object for this class in the TestCircleRectangle class with a constructor receiving one parameter of color . Add a method setWidthHeight() which accepts two double parameters width and height. Add another method getWidthHeight which returns width and height. Also call the setColor() method of the superclass from the constructor and call the getColor() method in TestCircleRectangle class for RectangleFromSimpleGeometricObject class.
java code not c++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
