250 / 165 Review Flashcards

1
Q

What is encapsulation

A

Bundling data and methods that operate on that data within a single unit. It is a way of hiding implementation details of a class from outside access and only exposing a public interface to interact with the class.

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