String 默认null Boolean默认false int默认0 double默认0.0 类中使用自定义类定义属性默认值:null 在定义属性的时候可以指定默认值 转载于:https://www.cnblogs.com/cuteCoderSnow/p/10136998.html