Encapsulation is ___

52. Encapsulation is ___.

  1. Wrapping up of data and related functions into a single entity
  2. Creating special methods
  3. Creating special data structure
  4. All of these

Answer: A) Wrapping up of data and related functions into a single entity

Explanation:

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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.