Answer:
Answered below.
Step-by-step explanation:
//Program in Java
Class Test{
public static void main (String[] args){
//create a pet object
Pet pet = new Pet();
//call pet object's printInfo method
pet.printInfo();
//create a new Dog object
Dog dog = new Dog();
//dog can access the printInfo method of the Pet class because it derives from it
dog.printInfo();
//dog can also call it's private method.
dog.getBreed();
}
}