TXT

employeetable

By Joel Ramos,2014-10-21 10:13
11 views 0
employeetable

import java.io.*;

    public class EmployeeTable {

     public static void main(String args[])

     {

     employee e1=new employee("ÕÅ","Èý");

     e1.SetEmployeeID(6);

     e1.SeEmployeeDepartID(1);

     e1.SetEmployeeFirstName("Àî");

     System.out.print(e1.GetEmployeeFirstName());

     System.out.println(e1.GetEmployeeLastName());

     System.out.println("EmployeeID:"+e1.GettEmployeeID());

System.out.println("EmployeeDepartID:"+e1.GettEmployeeDepartID());

     }

     }

    class employee

    {

     String employeefirstname;

     String employeelastname;

     int employeeID;

     int employeedepartID;

     employee(String n1,String n2)

     {

     employeefirstname=n1;

     employeelastname=n2;

     }

     void SetEmployeeFirstName(String first_name)

     {

     employeefirstname=first_name;

     }

     void SetEmployeeLastName(String last_name)

     {

     employeelastname=last_name;

     }

     void SetEmployeeID(int id)

     {

     employeeID=id;

     }

     void SeEmployeeDepartID(int id)

     {

     employeedepartID=id;

     }

     String GetEmployeeFirstName()

     {

     return employeefirstname;

     }

     String GetEmployeeLastName()

     {

     return employeelastname;

     }

     int GettEmployeeID()

     {

     return employeeID;

     }

     int GettEmployeeDepartID()

     {

     return employeedepartID;

     }

    }

Report this document

For any questions or suggestions please email
cust-service@docsford.com