Chapter 3. Encapsulation of Data
- Understand the different members of a class
- Learn the difference between mutability and immutability
- Customize methods and fields to protect them against undesired access
- Work with access modifiers, naming conventions, and properties
- Customize getter and setter methods
Understanding the different members of a class
So far, we have been working with simple classes and used them to generate instances in Python and C#. We also defined the functions of ...