class Person7
{
public Person7()
// Person 类的构造方法
{
System.out.println("public Person()") ;
}
}
public class TestConstruct {
public static void main(String[] args) {
// TODO Auto-generated method stub
Person7 p = new Person7() ;
}
{
public Person7()
// Person 类的构造方法
{
System.out.println("public Person()") ;
}
}
public class TestConstruct {
public static void main(String[] args) {
// TODO Auto-generated method stub
Person7 p = new Person7() ;
}
}
======================result================
public Person()