Question: Write a GrowSquarePrinter program that constructs a Rectangle object square reper-senting a sequare with top-left corner(100, 100) and side length 50, print its location by
Write a GrowSquarePrinter program that constructs a Rectangle object square reper-senting a sequare with top-left corner(100, 100) and side length 50, print its location by calling System.out.Println(square), applies the translate and grow motheds, and calls System.out.println(square)again. the calls to translate and grow should modify the square so that it has twice the size and the same top-left corner as the original.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
