All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Empl.Empl

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

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

Version:
1.0
Author:
Vicky Shiv

Variable Index

 o address
Variable to store the address of the Employee
 o name
Variable to store the name of the Employee

Constructor Index

 o Empl()
Default Constructor
 o Empl(String, String)
Constructor with two argument "name" and "address"

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 name
 protected String name
Variable to store the name of the Employee

 o address
 protected String address
Variable to store the address of the Employee

Constructors

 o Empl
 public Empl()
Default Constructor

 o Empl
 public Empl(String name,
             String address)
Constructor with two argument "name" and "address"

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

 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

 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 Object
 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)

All Packages  Class Hierarchy  This Package  Previous  Next  Index
1