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