class Data {
string name;
string ID;
public:
Data(){cout<<"Data"<<endl;}
};
class info{
string name;
string ID;
public:
info(){cout<<"info"<<endl;}
};
Two classes defined above. Now I want to create a vector of type
std::vector<Data obj1, info obj2> container;
further I want to use the vector features using the vector container.
How i can create a vector container having two class objects ?
please help me.