21#ifndef WRONGANIMAL_HPP
22#define WRONGANIMAL_HPP
The WrongAnimal class represents a generic animal, used to demonstrate the LACK of polymorphism when ...
WrongAnimal()
Default constructor for WrongAnimal. Initializes the type to "Generic WrongAnimal"....
WrongAnimal & operator=(const WrongAnimal &other)
Copy assignment operator for WrongAnimal. Assigns the type from the other WrongAnimal object....
const std::string & getType() const
Gets the type of the WrongAnimal.
void makeSound() const
Makes a generic sound for a WrongAnimal. This function is intentionally NOT VIRTUAL to show the lack ...
virtual ~WrongAnimal()
Destructor for WrongAnimal. Displays a destruction message. Note: Declared virtual in the header to e...