Class Employee


  • public class Employee
    extends java.lang.Object
    Class implementing an employee.
    See Also:
    Lab 10 Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Employee​(java.lang.String setName, java.lang.String setManager)
      Create a new employee.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getManager()
      Get the employee's manager's name.
      java.lang.String getName()
      Get the employee's name.
      void setManager​(java.lang.String setManager)
      Set the employee's manager's name.
      void setName​(java.lang.String setName)
      Set the employee's name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Employee

        public Employee​(java.lang.String setName,
                        java.lang.String setManager)
        Create a new employee.
        Parameters:
        setName - the new employee's name
        setManager - the new employee's manager
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the employee's name.
        Returns:
        the employee's name
      • setName

        public void setName​(java.lang.String setName)
        Set the employee's name.
        Parameters:
        setName - the name to set
      • getManager

        public java.lang.String getManager()
        Get the employee's manager's name.
        Returns:
        the employee's manager's name
      • setManager

        public void setManager​(java.lang.String setManager)
        Set the employee's manager's name.
        Parameters:
        setManager - the manager's name to set