I just started programming, so I was going to make a program of a ball bouncing off the walls; very simple.
Unfortunately, the program says "The function movement () does not exist." Ball.display would probably be the same.
It didn't make much sense, since it seemed that you would be able to define functions of what they are.
Like for pseudo code,
...
person.move;
}
function move () {
xloc = xloc + xspd;
}
...
The actual code of the program:
Ball B;
class Ball {
int locx;
int locy;
int spdx;
int spdy;
color c;
Ball (int tlocx, int tlocy, int tspdx, int tspdy, int tc) {