All Packages Class Hierarchy This Package Previous Next Index
Class Empl.ContractEmployee
java.lang.Object
|
+----Empl.Empl
|
+----Empl.Employee
|
+----Empl.ContractEmployee
- public class ContractEmployee
- extends Employee
- implements Serializable
Description This class is derived from the Employee and have the basic
functions to deals with all operation of ContractEmployee
- Version:
- 1.0
- Author:
- Vicky Shiv
-
wage
- Variable to store the wages of the Contract Employee
-
ContractEmployee()
- Default Constructor
-
ContractEmployee(String, String, String, String)
- Constructor with four argument "name","address","sin" and wage
-
GetName()
- GetName is the Function which return the protected
attribute "name" associated with the Employee
-
readObject(ObjectInputStream)
- These are the default function to be include to Implement Serialization
This will call the DefalutReadObject function for the ObjectInputStream
-
toString()
- overrides the toString Function of the Object .
-
writeObject(ObjectOutputStream)
- These are the default function to be include to Implement Serialization
This will call the DefalutWriteObject function for the ObjectOutputStream
wage
public String wage
- Variable to store the wages of the Contract Employee
ContractEmployee
public ContractEmployee()
- Default Constructor
ContractEmployee
public ContractEmployee(String name,
String address,
String sin,
String wage)
- Constructor with four argument "name","address","sin" and wage
readObject
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
- These are the default function to be include to Implement Serialization
This will call the DefalutReadObject function for the ObjectInputStream
- Overrides:
- readObject in class Employee
writeObject
private void writeObject(ObjectOutputStream out) throws IOException
- These are the default function to be include to Implement Serialization
This will call the DefalutWriteObject function for the ObjectOutputStream
- Overrides:
- writeObject in class Employee
toString
public String toString()
- overrides the toString Function of the Object .
This is used for printing the Object
- Returns:
- String (Return the String representation of the Object)
- Overrides:
- toString in class Employee
GetName
public String GetName()
- GetName is the Function which return the protected
attribute "name" associated with the Employee
- Returns:
- String (Return the name associated with the Object)
- Overrides:
- GetName in class Employee
All Packages Class Hierarchy This Package Previous Next Index