Question: Write a class of rectangle with two variables length and width. Then write three methods insert, CalArea and CalParam which take these two variables from
Write a class of rectangle with two variables length and width. Then write three methods insert, CalArea and CalParam which take these two variables from the users (insert). Write two instances and check the class. Write the constructor as per your discretion. void insert(int l, int w) void calculateArea () void calculateParam ()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
