All Packages Class Hierarchy This Package Previous Next Index
Class Empl.Volunteer
java.lang.Object
|
+----Empl.Empl
|
+----Empl.Volunteer
- public class Volunteer
- extends Empl
- implements Serializable
Description This class is derived from the Employee and have the basic
functions to deals with all operation of Volunteer
- Version:
- 1.0
- Author:
- Vicky Shiv
-
Volunteer()
- Default Constructor
-
Volunteer(String, String)
- Constructor with two argument "name" and "address"
-
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
Volunteer
public Volunteer()
- Default Constructor
Volunteer
public Volunteer(String name,
String address)
- Constructor with two argument "name" and "address"
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
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
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
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 Empl
All Packages Class Hierarchy This Package Previous Next Index