Files
42_INT_09_piscine_cpp/d04/ex01/WrongAnimal.cpp

51 lines
1.0 KiB
C++

#include "WrongAnimal.hpp"
/*********************************************
* CONSTRUCTORS
*********************************************/
WrongAnimal::WrongAnimal() {
type = "wrong_animal";
return;
}
WrongAnimal::WrongAnimal( WrongAnimal const & src ) {
*this = src;
return;
}
/*********************************************
* DESTRUCTORS
*********************************************/
WrongAnimal::~WrongAnimal() {
return;
}
/*********************************************
* OPERATORS
*********************************************/
WrongAnimal & WrongAnimal::operator=( WrongAnimal const & rhs ) {
if ( this != &rhs )
{
type = rhs.getType();
}
return *this;
}
/*********************************************
* ACCESSORS
*********************************************/
std::string WrongAnimal::getType() const {return type;}
/*********************************************
* PUBLIC MEMBER FUNCTIONS
*********************************************/
void WrongAnimal::makeSound() const {
std::cout << "*sound*\n";
}