Commit dc761705 authored by suleman.hussain's avatar suleman.hussain

finished

parent c8182b71
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
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() {
super();
......
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
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