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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started