All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Empl.Employee

java.lang.Object
   |
   +----Empl.Empl
           |
           +----Empl.Employee

public abstract class Employee
extends Empl
implements Serializable
Description This class is a base class of all the PermanentEmployee and
ContractEmployee

Version:
1.0
Author:
Vicky Shiv

Variable Index

 o sin
Variable to store the name of the Employee SIN

Constructor Index

 o Employee()
Default Constructor
 o Employee(String, String, String)
Constructor with three argument "name" ,"address" and "Sin"

Method Index

 o GetName()
GetName is the Abstract Function which return the protected attribute "name"
 o readObject(ObjectInputStream)
These are the default function to be include to Implement Serialization This will call the DefalutReadObject function for the ObjectInputStream
 o toString()
overrides the toString Function of the Object .
 o writeObject(ObjectOutputStream)
These are the default function to be include to Implement Serialization This will call the DefalutWriteObject function for the ObjectOutputStream

Variables

 o sin
 protected String sin
Variable to store the name of the Employee SIN

Constructors

 o Employee
 public Employee()
Default Constructor

 o Employee
 public Employee(String name,
                 String address,
                 String sin)
Constructor with three argument "name" ,"address" and "Sin"

Methods

 o 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 Empl
 o 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 Empl
 o GetName
 public abstract String GetName()
GetName is the Abstract Function which return the protected attribute "name"

Returns:
String (Return the name associated with the Object)
Overrides:
GetName in class Empl
 o 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 Empl

All Packages  Class Hierarchy  This Package  Previous  Next  Index
1