All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Empl.PermanentEmployee

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

public class PermanentEmployee
extends Employee
implements Serializable
Description This class is derived from the Employee and have the basic 
functions to deals with all operation of Permanent Employee

Version:
1.0
Author:
Vicky Shiv

Variable Index

 o salary
Variable to store the salary of the Permanent Employee

Constructor Index

 o PermanentEmployee()
Default Constructor
 o PermanentEmployee(String, String, String, String)
Constructor with four argument "name","address","sin" and salary

Method Index

 o GetName()
GetName is the Function which return the protected attribute "name" associated with the Employee
 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 salary
 public String salary
Variable to store the salary of the Permanent Employee

Constructors

 o PermanentEmployee
 public PermanentEmployee()
Default Constructor

 o PermanentEmployee
 public PermanentEmployee(String name,
                          String address,
                          String sin,
                          String salary)
Constructor with four argument "name","address","sin" and salary

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 Employee
 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 Employee
 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 Employee
 o 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
1