#include<iostream.h>
#include<conio.h>
class flight
{ public:
int flight;
char destination;
int distance;
public :
void flight::feeddata(void)
{
cout<<"enter the flight no.:";
cin>>flight;
cout<<"enter the destination:";
cin>>destination;
cout<<"enter the distance:";
cin>>distance;
}
void flight::showdata(void)
{
cout<<"the flight no. is:"<<flight;
cout<<"the flight will go to:"<<destination;
cout<<"the distance is:"<<distance;
}
};
void main()
{
clrscr();
flight plane;
plane.feeddata();
plane.showdata();
getch();
}