Here's a class named Employee with three fields: name, salary, address.
Add three constructors to the class:
- the first one is the no-argument constructor, it should initialize string fields with the value "unknown", the
salaryis 0; - the second one takes
nameandsalary, and then initializes the corresponding fields, theaddressis "unknown"; - the third one takes
name,salary,addressand initializes all fields.
Do not make the fields and constructors private.