Question: public abstract class Shape I public abstract double perimeter ( ) ; public abstract double area ( ) ; ( d ) Solution public class
public abstract class Shape I
public abstract double perimeter;
public abstract double area;
d Solution
public class Circle extends Shape
private double radius;
public double perimeter I
return Math.PI radius;
public double area
return Math.PI radius radius;
e Solution
public class Rectangle extends Shape
private double length, width;
public double perimeter
return length width;
I
public double area
return length widtht;
What is abstract class shape means
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
