#include
#include
using namespace std;
// class 'Rectangle'
class Rectangle {
private:
double length, breadth;
public:
double getArea() {
return length * breadth;
}
void setLength(double length) {
this->length = length;
}
void setBreadth(double breadth) {
this->breadth = breadth;
}
Rectangle operator+(Rectangle& r2) {
Rectangle temp;
temp.setLength(length + r2.length);
temp.setBreadth(breadth + r2.breadth);
return temp;
}
};
// void function for the inputing data for class 'Rectangle' & uisng the overloading
void RectangleFirst() {
Rectangle r3, r1, r2;
int temp;
cout temp;
r1.setBreadth(temp);
cout