7-1: Project Two
Amanda Putzier
Southern New Hampshire University
IT 145: Foundation in Application Development
Doctor Angel Cross
June 21st, 2026
,RescueAnimal.java (Unchanged)
// RescueAnimal.java
// Base class for all rescue animals in the Grazioso Salvare system.
// This class encapsulates shared attributes and behaviors that apply
// to both dogs and monkeys, demonstrating the OOP principle of encapsulation.
// No modifications were required for this milestone.
import java.lang.String;
public class RescueAnimal {
// Instance variables shared by all rescue animals
// Protected access allows subclasses (Dog, Monkey) to access these directly
protected String name;
protected String animalType;
protected String gender;
protected String age;
protected String weight;
protected String acquisitionDate;
protected String acquisitionCountry;
protected String trainingStatus;
protected boolean reserved;
protected String inServiceCountry;
// Default constructor — initializes a RescueAnimal with no preset values
public RescueAnimal() {
}
// Accessor method for the animal's name
public String getName() {
return name;
}
// Mutator method for the animal's name
public void setName(String name) {
this.name = name;
}
// Accessor method for the animal type (e.g., "Dog" or "Monkey")
public String getAnimalType() {
return animalType;
}
// Mutator method for the animal type
public void setAnimalType(String animalType) {
, this.animalType = animalType;
}
// Accessor method for the animal's gender
public String getGender() {
return gender;
}
// Mutator method for the animal's gender
public void setGender(String gender) {
this.gender = gender;
}
// Accessor method for the animal's age
public String getAge() {
return age;
}
// Mutator method for the animal's age
public void setAge(String age) {
this.age = age;
}
// Accessor method for the animal's weight
public String getWeight() {
return weight;
}
// Mutator method for the animal's weight
public void setWeight(String weight) {
this.weight = weight;
}
// Accessor method for the date the animal was acquired
public String getAcquisitionDate() {
return acquisitionDate;
}
// Mutator method for the acquisition date
public void setAcquisitionDate(String acquisitionDate) {
this.acquisitionDate = acquisitionDate;
}
// Accessor method for the country where the animal was acquired
public String getAcquisitionLocation() {
return acquisitionCountry;
Amanda Putzier
Southern New Hampshire University
IT 145: Foundation in Application Development
Doctor Angel Cross
June 21st, 2026
,RescueAnimal.java (Unchanged)
// RescueAnimal.java
// Base class for all rescue animals in the Grazioso Salvare system.
// This class encapsulates shared attributes and behaviors that apply
// to both dogs and monkeys, demonstrating the OOP principle of encapsulation.
// No modifications were required for this milestone.
import java.lang.String;
public class RescueAnimal {
// Instance variables shared by all rescue animals
// Protected access allows subclasses (Dog, Monkey) to access these directly
protected String name;
protected String animalType;
protected String gender;
protected String age;
protected String weight;
protected String acquisitionDate;
protected String acquisitionCountry;
protected String trainingStatus;
protected boolean reserved;
protected String inServiceCountry;
// Default constructor — initializes a RescueAnimal with no preset values
public RescueAnimal() {
}
// Accessor method for the animal's name
public String getName() {
return name;
}
// Mutator method for the animal's name
public void setName(String name) {
this.name = name;
}
// Accessor method for the animal type (e.g., "Dog" or "Monkey")
public String getAnimalType() {
return animalType;
}
// Mutator method for the animal type
public void setAnimalType(String animalType) {
, this.animalType = animalType;
}
// Accessor method for the animal's gender
public String getGender() {
return gender;
}
// Mutator method for the animal's gender
public void setGender(String gender) {
this.gender = gender;
}
// Accessor method for the animal's age
public String getAge() {
return age;
}
// Mutator method for the animal's age
public void setAge(String age) {
this.age = age;
}
// Accessor method for the animal's weight
public String getWeight() {
return weight;
}
// Mutator method for the animal's weight
public void setWeight(String weight) {
this.weight = weight;
}
// Accessor method for the date the animal was acquired
public String getAcquisitionDate() {
return acquisitionDate;
}
// Mutator method for the acquisition date
public void setAcquisitionDate(String acquisitionDate) {
this.acquisitionDate = acquisitionDate;
}
// Accessor method for the country where the animal was acquired
public String getAcquisitionLocation() {
return acquisitionCountry;