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
-
impl
- This is variable to stores the reference of the ConntainerList or ContainerArray
-
Test()
- Default Constructor
-
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
-
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
-
HireVolunteer()
- This Function will Hire a Volunteer and stored it in the
ContainerList or ContainerArray depending on the Reference Stored in
the "impl" variable
-
LoadFromFile()
- This function load the Impl Instance from the file
-
main(String[])
- this is the Main entry Point.
-
Menu()
- This function implementions basic functionality as the text Menu .
-
PrintList()
- This function is used to Print either ContainerArray or ContainerList
Depending upon the Reference stored in the "impl"
-
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
-
SaveToFile()
- This function save the Impl Instance into the file
-
ToChangeImplementation()
- This function is used for switching among the implementation
impl
Implementation impl
- This is variable to stores the reference of the ConntainerList or ContainerArray
Test
public Test()
- Default Constructor
Menu
public void Menu()
- This function implementions basic functionality as the text Menu .
main
public static void main(String Args[])
- this is the Main entry Point.
- Parameters:
- String[] - Command line arguments
ToChangeImplementation
public void ToChangeImplementation()
- This function is used for switching among the implementation
PrintList
public void PrintList()
- This function is used to Print either ContainerArray or ContainerList
Depending upon the Reference stored in the "impl"
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
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
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
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
SaveToFile
public void SaveToFile()
- This function save the Impl Instance into the file
LoadFromFile
public void LoadFromFile()
- This function load the Impl Instance from the file