How to : Static variable in inherited class
- by nXqd
class B {
public:
static int a;
}
class C:B {
}
I want to use a variable through any inherited classes but it has problem when I declare a.
B::B() {
a=1;
}
Do I do it right ?
Thanks for reading and waiting for your comments.