文章目录 一、属性的特点 一、属性的特点 (1)属性有默认值 基本数据类型: byte,short,int,long:0 float,double:0.0 char:\u0000 boolean:false 引用数据类型: null (2)每一个对象的属性是独立,互不干扰