Main ex02 ready

This commit is contained in:
2025-11-21 12:20:42 +01:00
parent c624ced97f
commit 2b773cc877

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */ /* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/08 17:43:10 by hadi #+# #+# */ /* Created: 2025/11/08 17:43:10 by hadi #+# #+# */
/* Updated: 2025/11/10 20:50:41 by aortigos ### ########.fr */ /* Updated: 2025/11/21 12:20:21 by aortigos ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@@ -16,11 +16,13 @@
int main() int main()
{ {
//const Animal* j = new Animal(); const Animal* j = new Animal();
const Animal* i = new Cat(); const Animal* i = new Cat();
//j->makeSound(); j->makeSound();
i->makeSound(); i->makeSound();
delete (i);
return (0); return (0);
} }