Question: 2. In Java create a class called 'Rectangle'. Write a function/method to calculate the area of rectangle. Driver class is 'RectangleTest'. Create one objects for
2. In Java create a class called 'Rectangle'. Write a function/method to calculate the area of rectangle.
Driver class is 'RectangleTest'. Create one objects for class Rectangle and print its area.
One Object - User input //Scanner
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
