private Square wall;
public House()
{
wall = new Square();
wall.makeVisible();
wall.changeSize(80);
wall.moveHorizontal(40);
wall.moveVertical(170);
}
private Triangle roof;
public House()
{
roof = new Triangle();
roof.makeVisible();
roof.changeSize(50, 120);
roof.moveHorizontal(90);
roof.moveVertical(155);
roof.changeColor("Black");
}
Edit: That fixed it but when I try adding this one I get the error again.
private Square window;
public House(Square window)
{
window = new Square();
}
I understand why I am getting this, because I already have 2 of the same constructors with the same signature. Is there anyway I could just merge them together?