Question: Q5) Write java project for the following classes. Note that you must use inheritance. Class circle: name, color, xCenter, Center, radius. Constructor has parameter name.
Q5) Write java project for the following classes. Note that you must use inheritance. Class circle: name, color, xCenter, Center, radius. Constructor has parameter name. Method read color, xCenter, yCenter, radius. Method to calculate area. Method to return all members as String Notes: (area= pi*radius?)you need import to get pi (Import static java.lang. Math.*;)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
