import java.util.*; public abstract class Pet { private int petId; private String name; private double weight; private Date dob; private Double accumulatedDose; private ArrayList doses; //Constructor public Pet(){ this.doses = new ArrayList(); } public Pet(int petId, String name, double weight, Date dob, double accumulatedDose){ this.petId = petId; this.name = name; this.weight = weight; this.dob = dob; this.accumulatedDose = accumulatedDose; this.doses = new ArrayList(); } // Setter public void setPetId(int petId){ this.petId = petId; } public void setName(String name){ this.name = name; } public void setWeight(double weight){ this.weight = weight; } public void setDob(Date dob){ this.dob = dob; } public void accumulatedDose(double accumulatedDose){ this.accumulatedDose = accumulatedDose; } public void setDoses(ArrayList doses){ this.doses = doses; } // Getter public int getPetId(){ return this.petId; } public String getName(){ return this.name; } public double getWeight(){ return this.weight; } public Date getDob(){ return this.dob; } public double getAccumulatedDose(){ return this.accumulatedDose; } public ArrayList getDoses(){ return this.doses; } public int findAge(){ int differentMonth = 0; Date firstDate = this.dob; Date secondDate = new Date(); } // public abstract double getDose(); }