Question: Using the output in Figure 1, write a program that uses the Encapsulation concept where: i. Make the instance variables private. ii. Have getter

Using the output in Figure 1, write a program that uses the Encapsulation concept where: i. Make the instance variables private. ii. Have getter and setter methods in the class to set and get the values of the fields. Employee Name: Mario Employee SSN: 112233 Employee Age: 32
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
