♥Heya!!
✳️✳️Define ✨ ENCAPSULATION ✨
❌ no spamming ❌
#followme❤
Answers
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. ... As the names indicate, a getter method retrieves an attribute, and a setter method changes it.
hope it help
In normal terms Encapsulation is defined as wrapping up of data and information under a single unit. In Object Oriented Programming, Encapsulation is defined as binding together the data and the functions that manipulates them.
Consider a real life example of encapsulation, in a company there are different sections like the accounts section, finance section, sales section etc. The finance section handles all the financial transactions and keep records of all the data related to finance.