类是现实的抽象, 实例是具体的张三、李四。
0.初始化对象的函数 1.使用new,必须要有构造器 2.定义了构造函数后,默认自带的空构造函数会失效。 public Person(){ this.name = "qianyu";//this是当前类的属性变量。 } 3.IDEA有快捷键创建构造函数。 alt + Insert