1.

Suppose we have a class RECTANGLE with two properties: height and width. This class also has function calcArea(). We have created an object OBJ in main function. Which of the following is correct way to call calcArea() function? *RECTANGLE OBJ.calcArea()

Answer»

ANSWER:

RECTANGLE OBJ

OBJ.calcArea()



Discussion

No Comment Found