Java Programming Fundamentals

Casual Mode - Take your time!

1 / 18
Correct
0
Incorrect
0
Score
0%
Multiple Choice

What is the role of encapsulation in Object Oriented Programming?

  1. It is used to hide the data from the outside view.
  2. By using encapsulation we can use the properties of the base class in the subclass.
  3. Encapsulation binds the data and code in a well defined interface.
  4. All of the above
  5. Both (1) and (3)
Change Mode