Commit 8a7ea932 authored by Suleman Hussain's avatar Suleman Hussain

glokkllolo

parent 0696bbb0
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
...@@ -5,10 +5,6 @@ abstract public class Shape { ...@@ -5,10 +5,6 @@ abstract public class Shape {
abstract public void draw(); abstract public void draw();
abstract public float area(); abstract public float area();
abstract public float circumference(); abstract public float circumference();
abstract public int getWidth();
abstract public int getHeight();
abstract public void setHeight(int height);
abstract public void setWidth(int width);
public int getSize() { return size; } public int getSize() { return size; }
public void setSize(int size) { this.size = size; } public void setSize(int size) { this.size = size; }
......
public class Square extends Shape{ public class Square extends Shape{
public int width;
public int height;
public int getWidth() {
return this.width;
}
public void setWidth(int width){
this.width=width;
}
public int getHeight() {
return this.height;
}
public void setHeight(int height) {
this.height=height;
}
public Square() { public Square() {
super(); super();
......
public class Triangle extends Shape{ public class Triangle extends Shape{
public int width;
public int height;
public int getWidth() {
return this.width;
}
public void setWidth(int width){
this.width=width;
}
public int getHeight() {
return this.height;
}
public void setHeight(int height) {
this.height=height;
}
// An equilateral triangle // An equilateral triangle
public Triangle() { public Triangle() {
......
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