Which two demonstrate encapsulation of data?()
- A、 Member data have no access modifiers.
- B、 Member data can be modified directly.
- C、 The access modifier for methods is protected.
- D、 The access modifier to member data is private.
- E、 Methods provide for access and modification of data.
正确答案:D,E
答案解析:有
微信扫一扫手机做题