The Java training online
Purpose: Think and find where new instance variables should be added in an inheritance graph
Statement of the exercise:
int id
, int age
and double height
(m). Add getters for them 3, no setters required here.SpatializedTree
with id = 2
, age = 6
, height = 6.7m
, dbh= 6.1cm
and location (4, 3)
, then print its toString() method to the terminal