Vote count:
0
i just want make sure im correct here im trying to add methods to a. Change height b. Change width c. Change coordinates d. Calculate perimeter e. Calculate area
public class MyRectangle {
public int width ;
public int height;
public int y;
public int x;
public MyRectangle()
{
width=10;
height=10;
y=10;
x=10;
public int MyRectangle;
public MyRectangle(int width, int height, int y, int x, int MyRectangle) {
this.width = width;
this.height = height;
this.y = y;
this.x = x;
this.MyRectangle = MyRectangle;
}
}
and im also getting a illegal start of expression error on my method
asked 51 secs ago
method error how to fix
Aucun commentaire:
Enregistrer un commentaire