In one class named Contact, It has private name(string) member, and the second class (base class) AddressBook, has private member Contact contacts[100], and I can't acces when I define in main like this:
AddressBook ab1;
cout<<"Enter Name"<<endl;
name=ab1.contacts[0].setName();