Question: the abstract class TwoDShape, define a concrete class Circle. This subclass should implement area() method that computes the area of a circle and a constructor

 the abstract class TwoDShape, define a concrete class Circle. This subclass

the abstract class TwoDShape, define a concrete class Circle. This subclass should implement area() method that computes the area of a circle and a constructor that users the super to initialize TwoDShape portion. The area of a circle is nr2 where t = 3.14159. You need show the following Java syntax for Circle class, constructor for Circle () that has one parameter (radius) and area () method that returns a double. (10 points) abstract class TWODShape { Int width; Int height; TWODShape (Int x, Int y) { this.width = x; this.height } = Y; abstract double area(); } show your Circle class below

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!