|
Created by joannazhang13
over 9 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);}
Want to create your own Notes for free with GoConqr? Learn more.