#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: void set(int x,int y){ length=x; width=y; } int getlength(){ return length; } int getwidth(){ return width; } int area(){ return length*width; } // write your c...