I have a function which takes a reference to an object-
void move(Ball& ball);
I have another function calling 'move()' which has a pointer to ball -
void foo(Ball* ball){
//call move()
}
How is foo() supposed to pass ball to 'move()'?
Should it be like -
move(*ball);
or
move(ball);
or
move(&ball);