Class Test

java.lang.Object
   |
   +----Test

public class Test
extends Object
This class implements the Basic opreations on the List and Array

Version:
1.0
Author:
Vicky Shiv

Variable Index

 o impl
This is variable to stores the reference of the ConntainerList or ContainerArray

Constructor Index

 o Test()
Default Constructor

Method Index

 o HireContractEmployee()
This Function will Hire a Contract Employee and stored it in the ContainerList or ContainerArray depending on the Reference Stored in the "impl" variable
 o HirePermanentEmployee()
This Function will Hire a permanent Employee and stored it in the ContainerList or ContainerArray depending on the Reference Stored in the "impl" variable
 o HireVolunteer()
This Function will Hire a Volunteer and stored it in the ContainerList or ContainerArray depending on the Reference Stored in the "impl" variable
 o LoadFromFile()
This function load the Impl Instance from the file
 o main(String[])
this is the Main entry Point.
 o Menu()
This function implementions basic functionality as the text Menu .
 o PrintList()
This function is used to Print either ContainerArray or ContainerList Depending upon the Reference stored in the "impl"
 o RaiseSalary()
This Function will Raise a Salary of Employee stored and in the ContainerList or ContainerArray depending on the Reference Stored in the "impl" variable
 o SaveToFile()
This function save the Impl Instance into the file
 o ToChangeImplementation()
This function is used for switching among the implementation

Variables

 o impl
 Implementation impl
This is variable to stores the reference of the ConntainerList or ContainerArray

Constructors

 o Test
 public Test()
Default Constructor

Methods

 o Menu
 public void Menu()
This function implementions basic functionality as the text Menu .

 o main
 public static void main(String Args[])
this is the Main entry Point.

Parameters:
String[] - Command line arguments
 o ToChangeImplementation
 public void ToChangeImplementation()
This function is used for switching among the implementation

 o PrintList
 public void PrintList()
This function is used to Print either ContainerArray or ContainerList Depending upon the Reference stored in the "impl"

 o HirePermanentEmployee
 public void HirePermanentEmployee()
This Function will Hire a permanent Employee and stored it in the ContainerList or ContainerArray depending on the Reference Stored in the "impl" variable

 o HireContractEmployee
 public void HireContractEmployee()
This Function will Hire a Contract Employee and stored it in the ContainerList or ContainerArray depending on the Reference Stored in the "impl" variable

 o HireVolunteer
 public void HireVolunteer()
This Function will Hire a Volunteer and stored it in the ContainerList or ContainerArray depending on the Reference Stored in the "impl" variable

 o RaiseSalary
 public void RaiseSalary()
This Function will Raise a Salary of Employee stored and in the ContainerList or ContainerArray depending on the Reference Stored in the "impl" variable

 o SaveToFile
 public void SaveToFile()
This function save the Impl Instance into the file

 o LoadFromFile
 public void LoadFromFile()
This function load the Impl Instance from the file

1