Create a Class Manager which will have a function check() which will check if a particular employee is there or not- this can be done using employee Id . 1) Make Id of employee class private and see if it can be accessed from function check() 2) Using the employee Id(public) print the employee details in a function details() , details() function will be in manager class 3) Make the show() in class employee private and access show() from function details() and see if it can be accessed.