封装 (encapsulation)

在对象外部,为对象的属性赋值,可能存在非法数据的录入

ctrl+shift+s 自动生成get()和set()

posted @ 2020-12-05 10:47  菜鸟本鸟gyh  阅读(194)  评论(0)    收藏  举报