-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
34 lines (30 loc) · 1.33 KB
/
main.cpp
File metadata and controls
34 lines (30 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: zelhajou <zelhajou@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/16 00:39:02 by zelhajou #+# #+# */
/* Updated: 2024/06/16 00:40:11 by zelhajou ### ########.fr */
/* */
/* ************************************************************************** */
#include "AAnimal.hpp"
#include "Dog.hpp"
#include "Cat.hpp"
int main()
{
const AAnimal* j = new Dog();
const AAnimal* i = new Cat();
std::cout << "---------------------\n";
std::cout << j->getType() << " " << std::endl;
std::cout << "---------------------\n";
j->makeSound();
std::cout << "---------------------\n";
std::cout << i->getType() << " " << std::endl;
std::cout << "---------------------\n";
i->makeSound();
delete j;
delete i;
return (0);
}