27 lines
430 B
C++
27 lines
430 B
C++
#include "Animal.hpp"
|
|
#include "WrongAnimal.hpp"
|
|
#include "Cat.hpp"
|
|
#include "WrongCat.hpp"
|
|
#include "Dog.hpp"
|
|
|
|
int main() {
|
|
|
|
std::cout << "\n--Test0--\n" << std::endl;
|
|
{
|
|
const Animal* cat1 = new Cat();
|
|
Dog dogo;
|
|
cat1->makeSound();
|
|
dogo.makeSound();
|
|
delete cat1;
|
|
}
|
|
std::cout << "\n--Test1--\n" << std::endl;
|
|
{
|
|
//Animal animal;
|
|
|
|
//animal.makeSound();
|
|
}
|
|
std::cout << "\n--End--\n" << std::endl;
|
|
|
|
return (0);
|
|
}
|