Practice pieces
Inheritance: extension
Ok, so here's the simplest way of doing this:
Can you finish this off by:
1) Adding a setX
method inside the Land
class which
trys to access the superclass (Point
) x
variable directly.
2) Adding a setX
method inside the Land
class which
calls the superclass (Point
) setX
.