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.
Answers
Answered by
1
The answer is in the attachment.
The code is in Java.
Hope it helps.
Attachments:
Similar questions
English,
3 months ago
Science,
7 months ago
Computer Science,
7 months ago
Physics,
11 months ago
Science,
11 months ago