Encapsulation access-modifiers public-private-protected-internal getters-setters foreach-loop

We learned about the Encapsulation in OOP which is implemented by the six access modifiers for data and methods (public, private, protected, internal, protected-internal, private-protected [requires c# 7.2]) and the three modifiers for class (public, internal, private), how to add-reference from one project to another, Getters/Setters, for-each loop

UML:

More topics covered:
-
- What are modifiers?
- How to install c# 7.2
- How to compile to c# 7.2
- Default access modifiers (class/data/functions)
- ILDASM “private ansi” is actual internal for class
- private class
- Circular reference between projects
- Creating two projects and add reference > solution
- Using Setters to filter wrong data (i.e. negative height)
- Static data could be used as configuration
- Avoid repetition of values by using a bool[ ] array
Links: