Home » C++ Programming » Classes & Objects » Question
  1. What is the output of the program?

    1. Area of Rectangle A: 2
      Area of Rectangle B: 3
    2. Area of Rectangle A: 5
      Area of Rectangle B: 4
    3. Area of Rectangle A: 20
      Area of Rectangle B: 6
    4. Area of Rectangle A: 6
      Area of Rectangle B: 20
    5. None of these
Correct Option: D

We are calculating the area of rectangle by two objects.



Your comments will be displayed only after manual approval.