Commit 59978554 authored by a-j.towse's avatar a-j.towse

Woking Square tas

parent b67f5733
No preview for this file type
public class Square extends Shape{ public class Square extends Shape{
int size;
public Square(){ public Square(){
super(); super();
...@@ -9,5 +8,16 @@ public class Square extends Shape{ ...@@ -9,5 +8,16 @@ public class Square extends Shape{
super(x); super(x);
} }
public float area(){
return(size*size);
}
public float circumference(){
return(size*4);
}
public void Draw(){
}
} }
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