49 void swap(
Cat &other);
The Animal class represents a generic animal.
Represents the brain of an animal, holding a collection of ideas.
The Cat class represents a feline animal.
Cat & operator=(const Cat &other)
virtual void makeSound() const
Makes a generic animal sound. This implementation is for the base Animal class. Derived classes are e...
Declares the abstract Animal base class.
Declares the Brain class.