/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: hadi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/11/08 17:43:10 by hadi #+# #+# */ /* Updated: 2025/11/08 18:01:46 by hadi ### ########.fr */ /* */ /* ************************************************************************** */ #include "Animal/Animal.hpp" int main() { const Animal* meta = new Animal(); const Animal* j = new Dog(); const Animal* i = new Cat(); std::cout << j->getType() << " " << std::endl; std::cout << i->getType() << " " << std::endl; i->makeSound(); j->makeSound(); meta->makeSound(); return (0); }