[ad_1]
write a getter method for that field in the employee class that checks if the caller is the manager. If so, return the value.
[ad_2]
solved Declare a subclass method as a friend of the base class
[ad_1]
write a getter method for that field in the employee class that checks if the caller is the manager. If so, return the value.
[ad_2]
solved Declare a subclass method as a friend of the base class