home *** CD-ROM | disk | FTP | other *** search
/ Learn Java Now / Learn_Java_Now_Microsoft_1996.iso / MsDev / Samples / Microsoft / OLEControls / employee.java next >
Encoding:
Java Source  |  1996-08-27  |  621 b   |  28 lines

  1. import java.util.Date;
  2.  
  3. // mock-up of employee record in "Sample Database.mdb"
  4. public class employee
  5. {
  6.     // Fields in the record
  7.     public String name;
  8.     public String email;
  9.     public String phone;
  10.     public String location;
  11.     public String manager;
  12.     public Date hireDate;
  13.     public boolean certified;
  14.  
  15.     // constructor to set the field values 
  16.     employee(String name, String email, String mgr,
  17.         String phone, String loc, String date, boolean cert)
  18.     {
  19.         this.name = name;
  20.         this.email = email;
  21.         this.phone = phone;
  22.         location = loc;
  23.         manager = mgr;
  24.         hireDate = new Date(date);
  25.         certified = cert;
  26.     }
  27.  
  28. }