Viva Flashcards

1
Q
  1. 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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly