Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
import java.io.Serializable;
public class MedCond implements Serializable
{
// Variables
String algType;
String mdPhone;
String mdContact;
String illType;
//Constructor
public MedCond(String mdContact, String mdPhone, String algType, String illType)
{
this.mdContact=mdContact; //medical contact
this.mdPhone=mdPhone; //Medical Phone #
this.algType=algType; // Allergy Type
this.illType=illType; // Illness type
}
@Override
public String toString() {
return mdContact + "\t" + mdPhone + "\t" + algType + "\t" + illType;
}
//Get Methods
public String getIllType()
{
return illType;
}
public String getMdPhone()
{
return mdPhone;
}
public String getMdContact()
{
return mdContact;
}
public String getAlgType()
{
return algType;
}
//Update Methods
public void updateIllType(String name)
{
this.illType=name;
}
public void updateMdPhone(String name)
{
this.mdPhone=name;
}
public void updateMdContact(String name)
{
this.mdContact=name;
}
public void updateAlgType(String name)
{
this.algType=name;
}
}