are the two definitions of the constructors given in listing 8.14 an
example of overloading or overriding?
The private method skipSpaces appears in the definitions of both
Rectangle (listing 8.13) and Triangle (listing 8.14). Can we move this
method to the base class ShapeBasics (listing 8.12) so that both Rectangle
and Triangle can inherit it instead of each defining its own copy?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here