Class Employee


  • public class Employee
    extends java.lang.Object
    Used to make a an employee object which is then used for tracking production for each employee.
    Author:
    Jairo Garciga
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String email  
      java.lang.StringBuilder name  
      java.lang.String password  
      java.lang.String username  
    • Constructor Summary

      Constructors 
      Constructor Description
      Employee​(java.lang.String name, java.lang.String password)
      Takes the input for the name and password of the employee
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setEmail​(java.lang.String name)
      Sets the email to the format firstName.lastName@oracleacademy.Test
      java.lang.String toString()
      Returns a string representing all the data associated with an employee object
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        public java.lang.StringBuilder name
      • username

        public java.lang.String username
      • password

        public java.lang.String password
      • email

        public java.lang.String email
    • Constructor Detail

      • Employee

        public Employee​(java.lang.String name,
                        java.lang.String password)
        Takes the input for the name and password of the employee
        Parameters:
        name - The name of the employee
        password - The password of the employee
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns a string representing all the data associated with an employee object
        Overrides:
        toString in class java.lang.Object
        Returns:
        The String representing the data associated with an employee object.
      • setEmail

        public void setEmail​(java.lang.String name)
        Sets the email to the format firstName.lastName@oracleacademy.Test
        Parameters:
        name - The name of the employee