构造方法

1、创建对象时使用的构造方法。

 new +构造方法

2、有参数的构造方法

   初始化对象中的实例变量

原文地址:https://www.cnblogs.com/fatfatdachao/p/3961188.html