MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / operator+

Method operator+

Lab_14/Source.cpp:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 this->breadth = breadth;
23 }
24 Rectangle operator+(Rectangle &r2)
25 {
26 Rectangle temp;
27 temp.setLength(length + r2.length);
28 temp.setBreadth(breadth + r2.breadth);
29 return temp;
30 }
31};
32// void function for the inputing data for class 'Rectangle' & uisng the overloading
33void RectangleFirst()

Callers

nothing calls this directly

Calls 2

setLengthMethod · 0.80
setBreadthMethod · 0.80

Tested by

no test coverage detected