ex02 finished
This commit is contained in:
26
ex02/main.cpp
Normal file
26
ex02/main.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* main.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/11/08 17:43:10 by hadi #+# #+# */
|
||||
/* Updated: 2025/11/10 20:50:41 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Animal/Animal.hpp"
|
||||
#include "Dog/Dog.hpp"
|
||||
#include "Cat/Cat.hpp"
|
||||
|
||||
int main()
|
||||
{
|
||||
//const Animal* j = new Animal();
|
||||
const Animal* i = new Cat();
|
||||
|
||||
//j->makeSound();
|
||||
i->makeSound();
|
||||
|
||||
return (0);
|
||||
}
|
||||
Reference in New Issue
Block a user