The field component.x is not visible!
in
Programming Questions
•
1 years ago
I keep getting this error when im trying to create a class with global variables.
- class Ball {
int _w;
int _h;
int _x;
int _y;
int _xspeed;
int _yspeed;
Ball(int x, int y, int h, int w, int xspeed, int yspeed) {
_h = h;
_w = w;
_x = x;
_y = y;
_xspeed = xspeed;
_yspeed = yspeed;
}
1