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