Set and Get Employee Salary

# Introduction In this lab, you need to create a program that uses encapsulation to set and get the salary of an employee using a class named `Employee` with a private variable `salary`, a public setter function to set the salary, and a public getter function to get the salary.

|60 : 00

Click the virtual machine below to start practicing