I have asked to write a class which called "Worker" which contain methods and fields related to the following requrirements:
- A worker should have a number allocated sequentially starting from 122.
- the class should know the number of tasks required and whether Morning or evening, in first floor or in second floor, require wearing a uniform or not.
- if the task has allocated to another worker, it should know who is that worker and how much does he take for this work.
I think it does need another class, for examlpe (AnotherWorker). :rolleyes:
Can you help me.. just tell me what should I use of methods and fields... tell me as possible as you can.