|
Created by joannazhang13
almost 10 years ago
|
|
public abstract class Shape implements Comparable{ private String name; //constructor public Shape (String n) { name= n; } //accessor public String getName() { return name; } //methods public abstract double area(); public abstract double perimeter(); public abstract int compareTo(Shape s);}
There are no comments, be the first and leave one below:
Want to create your own Notes for free with GoConqr? Learn more.