Class super {private void method () {system.out.println ("super");} public void call () {method ();}} public class child extends super {private void method () {system.out.println ("Child");} public void call () {method ();}} Compiled, but run error error is "Exception in thread" java.lang.nosuchmethoderror: main "I want to output super, child. how to Changed to display the correct result. The example is from someone else's reply.