The Animal class represents a generic animal.
Animal()
Default constructor for Animal. Initializes the type to "Generic Animal". Displays a construction mes...
const std::string & getType() const
Gets the type of the animal.
virtual ~Animal()
Destructor for Animal. Displays a destruction message.
virtual void makeSound() const
Makes a generic animal sound. This implementation is for the base Animal class. Derived classes are e...
Animal & operator=(const Animal &other)
Copy assignment operator for Animal. Assigns the type from the other Animal object....