Question: Which statement best describes encapsulation? A. Encapsulation ensures that classes can be designed so that only certain fields and methods of an object are accessible

 Which statement best describes encapsulation? A. Encapsulation ensures that classes can

Which statement best describes encapsulation? A. Encapsulation ensures that classes can be designed so that only certain fields and methods of an object are accessible from other objects B. Encapsulation ensures that classes can be designed so that their methods are inheritable. C. Encapsulation ensures that classes can be designed with some fields and methods declared as abstract. Encapsulation ensures that classes can be designed so that if a method has an argument MyType x, any subclass of MyType can be passed to that method. D

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!