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
-
address
- Variable to store the address of the Employee
-
name
- Variable to store the name of the Employee
-
Empl()
- Default Constructor
-
Empl(String, String)
- Constructor with two argument "name" and "address"
-
GetName()
- GetName is the Abstract Function which return the protected
attribute "name"
-
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
name
protected String name
- Variable to store the name of the Employee
address
protected String address
- Variable to store the address of the Employee
Empl
public Empl()
- Default Constructor
Empl
public Empl(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
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
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
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