/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bchanot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/07/17 15:10:40 by bchanot #+# #+# */ /* Updated: 2025/12/18 17:05:50 by bchanot ### ########.fr */ /* */ /* ************************************************************************** */ #include "Animal.hpp" #include "Dog.hpp" #include "Cat.hpp" #include "CatWrong.hpp" #include "AnimalWrong.hpp" #include #include int main( void ) { const AnimalWrong* meta = new AnimalWrong(); const Animal* j = new Dog(); const AnimalWrong* i = new CatWrong(); std::cout << j->getType() << " " << std::endl; std::cout << i->getType() << " " << std::endl; i->makeSound(); //will output the cat sound! j->makeSound(); meta->makeSound(); return 0; }