-
Getters and Setters
Which of the below is a getter method for the number of wheels?
----------------------------------
-
Subclass
Whate line could replace
____blank____
to create a class that inherets fromAnimal
in the code below?____blank____
With this definition of Dog, you run a program with line1, line2, and line3 above. What happens? Refer to the lecture slides for the code making up the “Animal” class.