What will be result of each method call in the main method for the codes shown…

What will be result of each method call in the main
method for the codes shown below?

public class Pett public void speak) System.out.println (“speaking!”) public void jump) System.out.println (“jumping!”) public void walk)i System.out.println (“walking!”) public class Dog extends Pet t public class SimpleInheritance i public static void main (String args [1) Dog myDognew Dog ); myDog.speak) myDog.walk) myDog.jump )