Novice problem, everyone helps to see. Who has the opinion 分 分 给!

xiaoxiao2021-03-06  41

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.

转载请注明原文地址:https://www.9cbs.com/read-51788.html

New Post(0)