clsaa Person
{
private string name;
private int age;
person()
{
this("haha")
}
person(string name)
{
tihs();
this.name = name;
}
person(string name,int age)
{
this(name);
this.name = name;
this.age = age;
}
}
class PersonDemo
{
publie static void main(string[] ages)
{
person p =new person("lisi",30);
}
}
我在学习this这课视频内容的时候,没怎么理解懂this在几次调用中的应用,请前辈学长或老师帮我具体讲解一下。万份感谢。 |