I'm stuck with a program I'm writing after a while of fidling around and completing "c++ through game programming" book.
The situation is as follows:
Class A
{
public:
A(int x)
protected:
int a;
};
A::A(int x):
a(x)
{}
Class B : public A
Class C : public B
{
public:
C(int x)
};
C::C(int x)
{
A(int x);
}
Am I able to call the constructor of class A in the constructor of class C?
From what I think I know: B is linked to A and C is linked to B so I should be able to get to the constructor of class A from C when I am able to reach member variables and functions by derriving it.