| 1234567891011121314151617181920212223242526272829303132 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* main.cpp :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* 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 <iostream>
- #include <limits>
- 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;
- }
|