This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PatientCat // We'll use this class to keep track of each cat patient's medical information | |
{ | |
// Needed Fields | |
private final UUID uuid; // Prevent collisions with other cats (Sometimes cat's will have the same name, odd isn't it?) | |
private final String name; // Gives us an easier way of referring to a cat | |
private final int age; // How old the cat is (in 'human years') | |
private Allergy[] allergies; // An array containing the cat's allergy information. | |
private MedicalNote[] medicalNotes; // An array containing the cat's medical information. (Can be broken bones, tumors, infections, etc.) | |
//Pretty basic constructor. All we're doing here is creating a cat object with all the parameters we need. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Allergy | |
{ | |
private String description; | |
private int duration; | |
public Allergy(String description, int duration) | |
{ | |
this.description = description; | |
this.duration = duration; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Allergy | |
{ | |
private String description; | |
private int duration; | |
public Allergy(String description, int duration) | |
{ | |
this.description = description; | |
this.duration = duration; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Allergy | |
{ | |
private String description; | |
private int duration; | |
public Allergy(String description, int duration) | |
{ | |
this.description = description; | |
this.duration = duration; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Cat | |
{ | |
private String name; | |
private int age; | |
public Cat(String name, int age) | |
{ | |
this.name = name; | |
this.age = age; | |
} |