Computer Science, asked by mahreenrabbani51214, 1 month ago

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 sangitac711
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