Commit 02561412 authored by gavin.white's avatar gavin.white

Upload New File

parent 09820993
abstract public class Shape {
protected int size;
protected int width;
protected int height;
abstract public void draw();
abstract public float area();
abstract public float circumference();
public int getSize() {
return size;
}
public void setSize(int size) {
this.size = size;
}
public Shape() {
this.size = 3;
}
public Shape(int size) {
this.size = size;
}
public int getWidth() {
return width;
}
public void setWidth(int w) {
width = w;
}
public int getHeight() {
return height;
}
public void setHeight(int h) {
height = h;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment