为什么在InitialTelephone类里可以直接调用Telephone类里的构造方法啊?
package com.Telephone;
public class Telephone {
public Telephone() {
System.out.println("无参数的构造方法执行啦");
}
}
package com.Telephone;
public class InitialTelephone {
public static void main(String[] args) {
// TODO Auto-generated method stub
Telephone phone=new Telephone();
}
}