30 lines
1.2 KiB
C++
30 lines
1.2 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* main.cpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: hadi <hadi@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* 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);
|
|
}
|