Practice pieces


Inheritance: extension

Ok, so here's the simplest way of doing this:

GIS.java
Point.java
Land.java


 

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.