I have a shape SquareEx that extends Shape Square.
[code=java]
public class SquareEx extends Square {
private Color Shadow = Color.RED;
SquareEx(int x, int y){
super.setX(x);
super.setY(y);
}
[/code]
when i try and run, i get the error:
Error(7,26): constructor Square() not found in class Square
know why?
[code=java]
public class SquareEx extends Square {
private Color Shadow = Color.RED;
SquareEx(int x, int y){
super.setX(x);
super.setY(y);
}
[/code]
when i try and run, i get the error:
Error(7,26): constructor Square() not found in class Square
know why?
Comment