# Hunter Schafer, hschafer # This file defines a class to store multiple dogs class DogPack: """ A class that represents a group of dogs. Dogs can be added to the pack. """ def __init__(self): """ Constructs a DogPack with no dogs. """ self._my_dogs = [] def add_dog(self, dog): """ Adds the given dog to this DogPack """ self._my_dogs.append(dog) def all_bark(self): """ Makes each dog in the DogPack bark. """ for dog in self._my_dogs: dog.bark()