| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* CatWrong.cpp :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2025/12/18 16:28:27 by bchanot #+# #+# */
- /* Updated: 2025/12/18 17:03:55 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #include "CatWrong.hpp"
- /*
- ** ------------------------------- CONSTRUCTOR --------------------------------
- */
- CatWrong::CatWrong() : AnimalWrong("CatWrong")
- {
- std::cout << "A CatWrong is born !" << std::endl;
- }
- CatWrong::CatWrong( const CatWrong & src ) : AnimalWrong(src)
- {
- std::cout << "A " << this->type << " is born !" << std::endl;
- }
- /*
- ** -------------------------------- DESTRUCTOR --------------------------------
- */
- CatWrong::~CatWrong()
- {
- std::cout << "A " << this->type << "has died ..." << std::endl;
- }
- /*
- ** --------------------------------- OVERLOAD ---------------------------------
- */
- CatWrong & CatWrong::operator=( CatWrong const & rhs )
- {
- (void)rhs;
- //if ( this != &rhs )
- //{
- //this->_value = rhs.getValue();
- //}
- return *this;
- }
- std::ostream & operator<<( std::ostream & o, CatWrong const & i )
- {
- (void)i;
- //o << "Value = " << i.getValue();
- return o;
- }
- /*
- ** --------------------------------- METHODS ----------------------------------
- */
- void CatWrong::makeSound(void) const {
- std::cout << "*Miaouuu*" << std::endl;
- }
- /*
- ** --------------------------------- ACCESSOR ---------------------------------
- */
- /* ************************************************************************** */
|