hi guys, i have the following classes:
class A {
protected:
A *inner;
public:
....
virtual void doSomething() = 0;
....
}
class B: public A {
...
void doSomething() {
if(inner != NULL)
inner->doSomething();
}
...
}
When I use inner->doSomething()
I get a segmentation fault.
What should I do in order to call inner->doSomething()
in the B class?
thanks in advance.