AlgoViz

Ensuring proper encapsulation

medium 40 min

Private fields are the start, not the end.

Watch lesson4:46

Check yourself

One question at a time. Each answer explains why.

Question 1 of 13

Score 0
conceptual

What is a defensive copy?

Pick an answer to see why.

Flashcards

Say your answer, then reveal it.

Card 1 of 13

Recall

Proper encapsulation in one sentence?

Say your answer, then reveal it.

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