Question: We have a class Animal that contains the method public void printInfo(). Fill in the rest of the class Gopher by overriding the parents printInfo()
We have a class Animalthat contains the method public void printInfo(). Fill in the rest of the class Gopherby overriding the parents printInfo() method. It should call the AnimalsprintInfo() method along with also printing the gophers address.
public class Gopher _______ //dont forget to put something here
{
String holeAddress;
//Put the overridden method here
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
