Private can only access with private... as far as I know.
LateComerX's method will work as well, because it's within the same
class. It's not like another class is trying to access the private
class.
eagle's method is actually utilizing another class to access the
employee class, so it runs foul, producing an error. The error is
quite easy to understand:
'name' : cannot access private member declared in class
'employee'