Computer Science, asked by paridubey1209, 6 months ago

what is encapsulation?​

Answers

Answered by sahoobinay72
1

Explanation:

Encapsulation is one of the fundamental concepts in object-oriented programming (OOP). It describes the idea of bundling data and methods that work on that data within one unit, e.g., a class in Java. This concept is also often used to hide the internal representation, or state, of an object from the outside.

Stay safe and Stay healthy ❤️

Answered by Anonymous
4

Answer:

{\tt{\red{\underline{\underline{\huge{Answer:}}}}}}

☘Encapsulation

  • ⭐The system of binding and wrapping of data and function into a single unit is known as encapsulation .

Explanation:

☘What is encapsulation in Java with example?

  • ⭐Encapsulation in Java is a process of wrapping code and data together into a single unit, for example, a capsule which is mixed of several medicines. ... Now we can use setter and getter methods to set and get the data in it. The Java Bean class is the example of a fully encapsulated class.
Similar questions