Define function outside the class
Program to enter & display detail of 5 employ Define function outside the class :- #include<iosteram.h> #include<conio.h> class employ { char name[20]; int age; public; void getdata(); void putdata(); }; void employ::getdata() { cout<<"Enter employee name"; cin>>name; cout<<"Enter employee age"; cin>>age; } void employ::putdata() { cout<<"\n"<<name<<"\t"<<age; } void main() { clrscr(); employ b1[10]; int i; for(i=0;i<5;i++) { b1[i].getdata(); } cout<<"Employee details are: \n"; cout<<"name \t age"; for(i=0;i<5;i++) { b1[i].putdata(); } getch(); } Note:- If you use turboc++ then you use this code, if y...