Question: 2. (XX points) Fill in the template below to make a complete class definition for a class that describes a pet adoption system. The system


2. (XX points) Fill in the template below to make a complete class definition for a class that describes a pet adoption system. The system is implemented using an ArrayLists of pet names called pets and a count of pets that are adopted called numAdopted. So that there will not be confusion when adopting the class's constructor and mutator methods MUST be implemented with the strings in the list pets must always be unique. Make sure your code conforms to the instructions given in the comments for each method. Note: You are also being asked to write the code for a private helper method named getIndexOfPet. Make sure you are using this method in your accessors and mutators where appropriate to receive full credit! You may use the ArrayList methods on the back page when solving this problem. public class PetAdoption System private ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
