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.

时间:2022-10-13 06:31:02 所属题库:SCJP程序员认证考试题库

相似题目