OOP: Encapsulation
Please see my other Object-Oriented Programming (OOP) articles. Leveraging Encapsulation to Protecting Data & Behavior As demonstrated in my Inheritance article, I designed an Employee class which serves as a parent class for the Supervisor class. As you can see, the Employee class contains data and behaviors common to all types of employees, which the…