Question: Project 2-part 3 Create class Shape, Circle, Rectangle, and Square like the following diagram. Write a test class to test all the methods defined in


Project 2-part 3 Create class Shape, Circle, Rectangle, and Square like the following diagram. Write a test class to test all the methods defined in Shape, Circle, Rectangle, and Square. About a toString0 method In class Shape: A toStringO method that returns "A Shape with color of xxx and filledNot filled In class Circlc: Override the toString method inherited, to return EA Circle with radius-xxx, which is a subclass of yyy", where yyy is the output of the toString0 method from the suporclass. In class Rectangle: Override the toString0 method inherited, to return "A Rectangle with width Exxx and length zzz, which is a subclass of yyy", where yyy is the output of the to String0 method from the superclass In class Square: override the toString0 method inherited, to return "A square with side xxx which is a subclass of yyy", where yyy is the output of the toString0 method from the supcrclass
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
