Modify the Square class in Figures 8.13a and 8.13b so that it uses an instance variable to

Question:

Modify the Square class in Figures 8.13a and 8.13b so that it uses an instance variable to hold the printed symbol for either the border square or the solid square.

Sample session: Enter width of desired square: 5 Area = 25 Enter symbol: * Print with (b) order or (s)olid? b

Figures 8.13a:

/******** * Square.java * Dean & Dean * *This class manages squares. ************** import java.util.Scanner;

Figures 8.13b:

//* *********** private void drawBorder Square () { drawHorizontalLine(); } // end draw Border Square

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: