本帖最后由 俊颜魅惑众生° 于 2014-1-18 13:28 编辑
class Hbmh
{
private String name;
private int age;
Hbmh()
{
}
Hbmh(String name)
{
this.name=name;
}
Hbmh(String name,int age)
{
this(name);
this.age=age;
}
}
class HbmhDemo
{
public static void main(String[] args)
{
Hbmh p= new Hbmh("wangwu",23);
}
} |