Topics
Access
- private, protected and public specifiers
- Visibility rules
- Scope of class, instance, argument and local variables
Learning objectives
- Identify the scope and visibility of variables in a class.
Labs for this chapter are on the way
We are building worlds, labs and stories for Encapsulation. Meanwhile, practise its questions or explore the rest of Computing & AI.