#include<iostream.h>
#include<conio.h>
class rectangle
{
private:
int m,n;
public:
void setdata(int,int);
void area();
};
void rectangle::setdata(int u,int v)
{
m=u;
n=v;
}
void rectangle::area()
{
int a=m*n;
cout<<"\nArea of Rectangle= "<<a;
}
void main()
{
clrscr();
rectangle f,s;
f.setdata(10,20);
cout<<"Rectangle First : ";
f.area();
s.setdata(20,30);
cout<<"\nRectangle Second :";
s.area();
getch();
}