How do I access the base class protected/public methods in a derived object ? For example A and B are as defined below...
class A {
int a;
protected:
int set(int v){ a = v; };
public:
A(){};
int foo(){ return 0;};
};
class B : A {
int b;
public:
B(){};
};
int main(int a, char *argv[])
{
B *b = new B();
b->set(3); // I cannot access this method?
return 0;
}