Why is not working
#include <iostream> #Using namecspace std; Class shop { private : string shop id , fax ; protected: string itemtype; public: void store1() { cout<<"enter your SHOP ID : "; cin>>ShopID; cout<<"enter your fax no.: "; cin>>fax; cout<<"what's the type of the item you have bought: "; cin>>itemtype; } void display1() { cout<<"\nyour shop ID no. is: "<<ShopID<<endl <<"your fax no. is: "<<fax<<endl <<"your item type is: "<<itemtype<<endl; } }; class Branch1 : public Shop { private: string location, phone; public: void store2() { cout<<"\nenter shop's location: "; cin>>location; cout<<"enter the line no.: "; cin>>phone; } void display2() { cout<<"\nyour shop's location is: "<<location<<endl <<"your shop's line no. is: "<<phone<<endl; } }; class Branch2 : public Shop { private: string Manager; public: void store3() { cout<<"\nenter the shop manager's name: "; cin>>Manager; } void display3() { cout<<"\nthe shop manager's name is: "<<Manager<<endl; } }; Int main () { Employee emp1,emp2emp3; Emp1.store(); Emp1.display (); Emp2.display (); Emp2.store(); Emp3.store(); Emp3.display (); Return0; }