46 lines
1.0 KiB
C++
46 lines
1.0 KiB
C++
#include "WrongCat.hpp"
|
|
|
|
#define COPLIEN_COLOR B_CYAN
|
|
|
|
/*********************************************
|
|
* CONSTRUCTORS
|
|
*********************************************/
|
|
|
|
WrongCat::WrongCat() {
|
|
std::cout << COPLIEN_COLOR "WrongCat constructor" RESET "\n";
|
|
type = "wrong_cat";
|
|
return;
|
|
}
|
|
|
|
WrongCat::WrongCat( WrongCat const & src ) {
|
|
std::cout << COPLIEN_COLOR "WrongCat copy constructor" RESET "\n";
|
|
*this = src;
|
|
return;
|
|
}
|
|
|
|
/*********************************************
|
|
* DESTRUCTORS
|
|
*********************************************/
|
|
|
|
WrongCat::~WrongCat() {
|
|
std::cout << COPLIEN_COLOR "Cat destructor" RESET "\n";
|
|
return;
|
|
}
|
|
|
|
/*********************************************
|
|
* OPERATORS
|
|
*********************************************/
|
|
|
|
WrongCat & WrongCat::operator=( WrongCat const & rhs ) {
|
|
WrongAnimal::operator=(rhs);
|
|
return *this;
|
|
}
|
|
|
|
/*********************************************
|
|
* PUBLIC MEMBER FUNCTIONS
|
|
*********************************************/
|
|
|
|
void WrongCat::makeSound() const {
|
|
std::cout << "*miaow*\n";
|
|
}
|