Which two are true?()
- A、 An encapsulated, public class promotes re-use.
- B、 Classes that share the same interface are always tightly encapsulated.
- C、 An encapsulated class allows subclasses to overload methods, but does NOT allow overriding methods.
- D、 An encapsulated class allows a programmer to change an implementation without affecting outside code.
正确答案:A,D
答案解析:有

微信扫一扫手机做题