R

Ram Sharma • 193.86K Points
Coach

Q. Encapsulation is ___. 

  • (A) Wrapping up of data and related functions into a single entity
  • (B) Creating special methods
  • (C) Creating special data structure
  • (D) All of these

Explanation by: Team MCQ Buddy
In Java programming language, the encapsulation is a mechanism of wrapping the data (variables) and code acting on the data (methods) together as a single unit. It is a object-oriented programming concept.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.