Say you have a class Ball and in the Ball.h you have
class Ball {
public:
int foo();
};
with its Ball.cc file having the function
int Ball::foo(){
return 5;
}
and then you have a class BigBall with
#include <Ball.h>
class BigBall : public Ball {
public:
};
and then in your main you make a BigBall
auto bigRed = make_shared<BigBall>():
how would you go about using foo();
on the bigRed
object?
somthing like
Ball::bigRed->foo();
but I get told that ball cant be resolved....