Skip to main content

Lessons and exercises

Classes in a language with no enforced privacy. Encapsulation here is a convention the programmer upholds rather than a rule the language imposes, which changes how it must be taught.

Lesson 4.3

Methods and Encapsulation

Python marks intended privacy by naming convention rather than enforcement, so encapsulation is a contract between programmers.

Need help with this topic?

Work through questions with a tutor and get help with the steps you find difficult.

Get help with this topic