When (in Java) a static method and an instance method with the same name exist in different classes, I cannot access the method

前端 未结 0 654
再見小時候
再見小時候 2021-02-05 07:53

First, please take a look at the following code.

package test;

class c_hi {
    public static void method_hi(){
        System.out.println("hi");
    }         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题