I\'m having a problem with C++ inheritance.
I have a class hierarchy:
class A { public: virtual void onFoo() {} virtual void onFoo(int i) {} };
You forgot public: modifier before methods in both class A and B. Therefore method onFoo is private and thus not visible anywhere outside these classes.
public: