Close
Close

constructor

   Sakshi_09

Write a program to print the area of two rectangles having sides (4,5) and (5,8) respectively by creating a class named 'Rectangle' with a function named 'Area' which returns the area. Length and breadth are passed as parameters to its constructor.


Answers

  •    Larry Martin

    Constructed the Rectangle class and verified area calculations for the given rectangles (4, 5) and (5, 8). Efficient solution for determining rectangle areas.
    Car Headliner Service in Plano TX



Ask Yours
Post Yours
Write your answer