S
Surya Kiran
Hi all,
I've 2 classes class A, and class B.
and i want to use list of type B in class A. like this
list<B> typeB ;
till now its fine. But i want to make it a static member. like
static list<B> typeB ;
declaration is not a problem. Definition is the problem. I've 2
constructors for class B
1. default constructor B()
2. B (int a, int b)
how can i define the static member in class A, for both the
constructors.
Thanks in advance,
Surya
I've 2 classes class A, and class B.
and i want to use list of type B in class A. like this
list<B> typeB ;
till now its fine. But i want to make it a static member. like
static list<B> typeB ;
declaration is not a problem. Definition is the problem. I've 2
constructors for class B
1. default constructor B()
2. B (int a, int b)
how can i define the static member in class A, for both the
constructors.
Thanks in advance,
Surya