Question: IN JAVA PLEASE Program 2: Rectangle class and Square class A square is a rectangle whose length and width are the same. Implement a square
Program 2: Rectangle class and Square class A square is a rectangle whose length and width are the same. Implement a square class from a rectangle base class by using inheritance. Implement the rectangle class as the parent class (base class). Points will be given for quality of design. Implement the square class as a derived class (child class). Points will be given for quality of design. Provide methods for computing perimeter and area. o Write a test application to test every aspect of your classes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
