49 void swap(
Dog &other);
The Animal class represents a generic animal.
Represents the brain of an animal, holding a collection of ideas.
The Dog class represents a canine animal.
Dog & operator=(const Dog &other)
virtual void makeSound() const
Makes a generic animal sound. This implementation is for the base Animal class. Derived classes are e...
Brain * getBrain() const
Gets a pointer to the Dog's Brain object.
void bark() const
Makes a specific barking sound for a Dog. This is a Dog-specific method.
Declares the abstract Animal base class.
Declares the Brain class.