Input
Output
#include <iostream> using namespace std; class Rectangle{ private: int l,b; public: Rectangle(int l,int b) { this->l=l; this->b=b; } void show_data() { cout<<"Area of Rectangle: "<<l*b<< endl; } }; int main(){ Rectangle r1(5,4); r1.show_data(); return 0; }