35 lines
539 B
C++
35 lines
539 B
C++
|
#include "WrongAnimal.hpp"
|
||
|
#include <iostream>
|
||
|
#include <string>
|
||
|
|
||
|
WrongAnimal::WrongAnimal()
|
||
|
{
|
||
|
std::cout << "WrongAnimal()" << std::endl;
|
||
|
}
|
||
|
|
||
|
WrongAnimal::WrongAnimal(const WrongAnimal& src)
|
||
|
{
|
||
|
*this = src;
|
||
|
}
|
||
|
|
||
|
WrongAnimal& WrongAnimal::operator=(const WrongAnimal &src)
|
||
|
{
|
||
|
this->type = src.type;
|
||
|
return *this;
|
||
|
}
|
||
|
|
||
|
WrongAnimal::~WrongAnimal()
|
||
|
{
|
||
|
std::cout << "~WrongAnimal()" << std::endl;
|
||
|
}
|
||
|
|
||
|
void WrongAnimal::makeSound() const
|
||
|
{
|
||
|
std::cout << "OuGABounga" << std::endl;
|
||
|
}
|
||
|
|
||
|
std::string WrongAnimal::getType() const
|
||
|
{
|
||
|
return this->type;
|
||
|
}
|