Create a class Square derived from DrawableShape, as described in theprevious exercise. A Square object should know the length of its sides. Theclass should have an accessor method and a mutator method for this length.It should also have methods for computing the area and perimeter of thesquare. Although characters are taller than they are wide—so the number ofcharacters in the vertical sides will differ from the number in the horizontalsides—you need not worry about this detail when drawing the square.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here