Question: I'm trying to study for a programming test Can someone help me with the following code pleas Design an abstract class called shape. This class

I'm trying to study for a programming test Can someone help me with the following code pleas
"Design an abstract class called shape. This class contains a single constructor that accepts a numeric value that is used to calculate various values, one of which is area. Include in the class abstract mutator method called findArea that can be defined to find the are of various shapes. Also provide a concrete accessor method to return the area.
Design 2 concrete classes Circle and Square that inherits the class Shape. Each of these classes finds the respective area; I.E. are of circle and area of square.
You are responsible for providing any relevant variables
You are not required to write a test class"
Please help
 I'm trying to study for a programming test Can someone help

Design an abstract class called Shape. This class contains a single constructor that accepts a single numeric value that is used to calculate various values, one of which is area. Include in this class an abstract mutator method called findArea that can be defined to find the area of various shapes. Also provide a concrete accessor method to return the area. Design two concrete classes, Circle and Square, that inherits the class shape. Each of these classes finds the respective area; ie. area of circle and area of Square. You are responsible for providing any relevant variable(s). NB: You are NOT required to write a test class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!