Make class “Rectangle” with attribute length and breadth. The class contains methods computeArea /*below the left question*/ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Make class “Rectangle” with attribute length and breadth. The class contains methods computeArea /*below the left question*/

and displayArea. Write a program with main method that creates two objects of Rectangle class and find their areas and display area of larger rectangle.

17th Apr 2017, 4:46 PM
Arbind Mandal
Arbind Mandal - avatar
1 Answer
0
What is your problem with this task?
17th Apr 2017, 6:41 PM
T0nd3