1.

Develop a class named Rectangle with private data members length and width.Make a parameterized Constructor to initialize data members. Now take two method rectarea() and rectperi() to calculate area and parameter. Test the class rectangle.

Answer»

The ANSWER is in the attachment.

The CODE is in Java.

Hope it HELPS.



Discussion

No Comment Found