如果它是私有的,鸟如何能够调用该方法飞行public class Bird { private static void fly() { System.out.println("Bird is flying"); } public static void main(String[] args) { fly(); // make sense Bird bird = new Bird(); bird.fly(); }}
添加回答
举报
0/150
提交
取消