Java OCA OCP Practice Question 897

Question

Which of the following are characteristic of a fully encapsulated class?

  • A. All variables are private.
  • B. All methods are private.
  • C. Methods are provided to access the class's properties.
  • D. The class's design may be changed with minimal impact on its implementation.


A and C

Note

A fully encapsulated class declares its variables as private and provides methods to access the properties represented by these variables.




PreviousNext

Related