#include<iostream.h>
#include<conio.h>
class big
{
private :
int a, b, c, largest;
public :
big();
~big()
{cout<<endl<<endl<<"*****The destructor under work*****";
getch();
}
int operate();
void display();
};
big :: big()
{
clrscr();
cout<<"*****The constructor is automatically called*****"<<endl;
cout<<endl<<"Enter any three numbers : "<<endl;
cin>>a>>b>>c;
largest = a;
}
int big :: operate()
{
if (b > largest)
largest = b;
if (c > largest)
largest = c;
return(largest);
}
void big :: display ()
{
cout<<"The largest of entered numbers is : "<<largest;
}
int main()
{
big obj;
obj.operate();
obj.display();
getch();
return 0;
}