Hi, Im trying to create at vector of objects... the vector should contain objects from B and C.
so my Q is do I need to create a pointer vector of Obj A?Code:class A { // code } class B:A { // code } class C:A { // }
Can I create class A like:
and fill it with objects of B and C from main()? ITC how?Code:class A { vector <A *> aVec; }