home *** CD-ROM | disk | FTP | other *** search
/ Java Certification Exam Guide / McGrawwHill-JavaCertificationExamGuide.iso / pc / Web Links and Code / code / chap27 / PassengerRecord.java < prev   
Encoding:
Java Source  |  1997-04-20  |  447 b   |  30 lines

  1. public class PassengerRecord {
  2.    private long ptr;
  3.    private String name;
  4.    private int seat;
  5.  
  6.    public String getName() {
  7.       return name;
  8.    }
  9.  
  10.    public void setName(String n) {
  11.       name = n;
  12.    }
  13.  
  14.    public int getSeat() {
  15.       return seat;
  16.    }
  17.  
  18.    public void setSeat(int s) {
  19.       seat = s;
  20.    }
  21.  
  22.    public long getPtr() {
  23.       return ptr;
  24.    }
  25.  
  26.    public void setPtr(long p) {
  27.       ptr = p;
  28.    }
  29. }
  30.