Class Employee
- java.lang.Object
-
- Employee
-
public class Employee extends java.lang.ObjectUsed to make a an employee object which is then used for tracking production for each employee.- Author:
- Jairo Garciga
-
-
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 voidsetEmail(java.lang.String name)Sets the email to the format firstName.lastName@oracleacademy.Testjava.lang.StringtoString()Returns a string representing all the data associated with an employee object
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns a string representing all the data associated with an employee object- Overrides:
toStringin classjava.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
-
-