Viva Flashcards
1
Q
- Explain what is meant by encapsulation.
A
Encapsulation is an OOP concept that binds data and methods together into a single unit, known as a class. This helps protect data from unauthorized access and makes code easier to reuse. Encapsulation can be implemented by using getters and setters.