AlgoViz

Encapsulation

easy 35 min

Put the data and the methods that work on it into one unit, and let outside code reach the data only through those methods.

Watch lesson4:51

Check yourself

One question at a time. Each answer explains why.

Question 1 of 13

Score 0
conceptual

What is the main purpose of encapsulation?

Pick an answer to see why.

Flashcards

Say your answer, then reveal it.

Card 1 of 14

Recall

Encapsulation in one sentence?

Say your answer, then reveal it.

These cards come back in Today, just before you would forget them.