/Users/johnr/Desktop/IA Submissions/IA Final Submission - Peem/Product/IAcompsciMed_Peem/src/iacompscimed_peem/patientData.java
  1 /*
  2  * To change this license header, choose License Headers in Project Properties.
  3  * To change this template file, choose Tools | Templates
  4  * and open the template in the editor.
  5  */
  6 package iacompscimed_peem;
  7 
  8 import java.io.Serializable;
  9 
 10 /**
 11  *
 12  * @author 19496
 13  
 14 import java.io.Serializable;
 15 
 16 /**
 17  *
 18  * @author 15397
 19  */
 20 //implements means theres a certain predefined code that u wanna use.
 21 // this is data record
 22 public class patientData implements Serializable
 23 {
 24     //these are fields
 25     private String userFName;
 26     private String userLName;
 27     private String userSuffix;
 28     private String userDisease;
 29   
 30     
 31     
 32     public patientData()
 33     {
 34      userFName = "";
 35      userLName = "";
 36      userSuffix = "";
 37      userDisease = "";
 38     }
 39     
 40     public patientData(String FN, String LN, String SF,String DIS)
 41     {
 42         userFName = FN;
 43      userLName = LN;
 44      userSuffix = SF;
 45      userDisease = DIS;
 46      
 47     }
 48     
 49     public void setFName(String FN)
 50     {
 51         userFName = FN;
 52     }
 53     
 54     public void setLName(String LN)
 55     {
 56         userLName = LN;
 57     }
 58     
 59     public void setSuffix(String SF)
 60     {
 61         userSuffix = SF;
 62     }
 63     
 64         public void setDIS(String DIS)
 65     {
 66         userDisease = DIS;
 67     }
 68     
 69     
 70     
 71     
 72     
 73     
 74      public String getFName()
 75     {
 76         return userFName;
 77     }
 78     
 79      public String getLName()
 80     {
 81         return userLName;
 82     }
 83      
 84     
 85       public String getSuffix()
 86     {
 87         return userSuffix;
 88     }
 89       
 90    
 91            public String getDis()
 92     {
 93         return userDisease;
 94     }
 95      
 96      
 97      
 98       
 99     
100      
101      
102      
103      
104      
105      
106      
107      
108      
109      
110      
111      
112      
113      
114      @Override//use it to make toString that you make, not the one that is provided (can't see)
115      public String toString()
116      {
117          return ""
118                  + "\nName: "+userSuffix +""+ userFName +""+userLName
119                  +"\nDisease: "+ userDisease
120                 
121                  
122                  ;
123                  }
124 
125 }
126