programming

profileLupopo
TestEmployee.pdf

Encapsulation and data hiding, test constructor:

Create a class name it Employee with following data members:

1)- private String employeeName;

2)- private double Salary; // This line used on assignment 7.2

3)- private String CurrentDate; // This line used on assignment the 7.2

4) - private String employeeNumber;

Data member employeeNumber has this format XXX-L: where

A)-each X is a digit within the range 0-9

B)-the L is a letter within the range A-M Example: 123M

5) Add the following constructor to your class Employee

6)- Add the following method to verify is employeeNumber has the right format? Verify the specification A

and B. Implement setter and getter for methods setemployeeNumber and getemployeeNumber.

See the * More hint blow this page for method isvalidEmpNum(String e)

7)- Add the following method to implement salary setter and getter, populated on the 7.2

* More hint on class Employee:

Test your program with following Demo test.