Overload the ‘+’operator in triangle and rectangle classes. The overload function should add the values of (sides of) two triangles(and similarly thesides oftwo rectangles) and make a bigger triangle(and bigger rectangle) and return the area of big triangle(and big rectangle).
Answers
Answered by
1
Answer:
classes. The overload function should add the values of (sides of) two triangles(and similarly thesides oftwo rectangles) and make a bigger triangle(and bigger rectangle) and return the area of big triangle(and big
Similar questions