Design Patterns · Junior · Question 63 of 75

What is encapsulation?

Explanation

Private fields (#count), module-private functions and closures let internals change without breaking callers.

Further reading

Problem with a question

Design Patterns · Junior · question 63

Test yourself

Take the Design Patterns · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz