public class Rectangle {
private int width;
private int height;
public int getArea()
{
return width*height;
}
public Rectangle(int w,int h)
{
width = w;
height = h;
}
}
public class Rectangle {
private int width;
private int height;
public int getArea()
{
return width*height;
}
public Rectangle(int w,int h)
{
width = w;
height = h;
}
}