#include
#include
#include
class first
{
Private:
char name[15];
int eid;
float sal;
public:
void getdata();
void display();
};
class second
{
private:
char sex;
float ht,wt;
public:
void getdata();
void display();
};
void first::getdata()
{
cout<>name;
cout<>eid;
cout<>sal;
}
void first::display()
{
cout<<"tttt"<<name<<"tt"<<eid<<"t"<<sal;
}
void second::getdata()
{
cout<>sex;
cout<>ht;
cout<>wt;
}
void second::display()
{
cout<<"t"<<sex<<"t"<<ht<<"t"<<wt;
}
main()
{
class first a;
class second b;
clrscr();
cout<<"n Enter detials of employee:";
a.getdata();
b.getdata();
cout<<"nnn";
cout<<"nametteidtsalarytsextheighttweight";
a.display();
b.display();
getch();
}