I have tried googling this, and looked for a while, but have not found anywhere that explains how to do this well
SalariedEmployee salariedEmployee =
new SalariedEmployee("bob", "Smith", "222-22-2222", "800");
The variables are firstname, lastname, social security number, and weekly salary.
How would i change that to something where i can ask what each of the variables should be such as
SalariedEmployee salariedEmployee =
new SalariedEmployee(firstName, lastName, ssn, salary);
and then ask
what is the employee's first name?
what is the employee's last name?
What is the employee's ssn?
What is the employee's salary?
If anyone can explain this, or has seen this explained somewhere else your input would be greatly appreciated.