34 lines
488 B
C++
34 lines
488 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;
|
|
{
|
|
Cat cat1;
|
|
{
|
|
Cat cat2 = cat1;
|
|
}
|
|
}
|
|
std::cout << "\n--Test1--\n" << std::endl;
|
|
{
|
|
Dog dog1;
|
|
{
|
|
Dog dog2(dog1);
|
|
dog1 = dog2;
|
|
dog2 = dog1;
|
|
}
|
|
}
|
|
std::cout << "\n--Test2--\n" << std::endl;
|
|
{
|
|
Animal *dogo = new Dog();
|
|
delete dogo;
|
|
}
|
|
std::cout << "\n--End--\n" << std::endl;
|
|
|
|
return (0);
|
|
}
|