Alt+Insert:构造函数
包含参数:
Constructor:全参构造
Getter:必须的 return 字段名
Setter:this 值
Getter and Setter:选择字段以生成getter和setter
equals() and hashCode():看要不要寸在集合中
to String():好看
Override Methods:无参构造
Delegate Methods:
Test:文本
Copyright
Alt+Insert:构造函数
包含参数:
Constructor:全参构造
Getter:必须的 return 字段名
Setter:this 值
Getter and Setter:选择字段以生成getter和setter
equals() and hashCode():看要不要寸在集合中
to String():好看
Override Methods:无参构造
Delegate Methods:
Test:文本
Copyright
在C++中,结构体与类是相似的,他们可以互相进行继承操作
使用=default生成默认构造函数
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M