Create an employee class with the following properties:ID (int), FName(string), LName(string).
(Functionality) to track an employee's manager and subordinates.
Add a method that displays the names of all subordinates for a given employee.
Do not use multiple classes.(Use Tree Traversal)
It looks like you could benefit from reading quite a few of the sections of our HowToAskQuestionsOnJavaRanch FAQ. So please do that (follow the link) and then come back and post a question.
amruta shah wrote:Do not use multiple classes.(Use Tree Traversal)
Tree Traversal? means? .. can you elaborate...sorting is needed?
amruta shah
Greenhorn
Joined: Apr 10, 2012
Posts: 2
posted
0
Seetharaman Venkatasamy wrote:
amruta shah wrote:Do not use multiple classes.(Use Tree Traversal)
Tree Traversal? means? .. can you elaborate...sorting is needed?
It means maintain a list of managers and employees who report to that manager and when input is the manager name display the list of all the employees who report to that manager.