1
0
This repository has been archived on 2025-01-26. You can view files and clone it, but cannot push or open issues or pull requests.
2024-12-06 16:06:57 +01:00

39 lines
1.4 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Cat.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/01 19:49:11 by adjoly #+# #+# */
/* Updated: 2024/12/06 15:52:10 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "Cat.hpp"
Cat::Cat(void) : Animal("Cat"){
log("", "Cat", "", "construtor called");
}
Cat::~Cat(void) {
log("", "Cat", "", "destructor called");
}
Cat::Cat(const Cat &cpy) : Animal("Cat"){
log("", "Cat", _type, "copy construtor called");
*this = cpy;
}
Cat &Cat::operator=(const Cat &cpy) {
log("🟰", "Cat", "", "copy assignment construtor called");
if (this != &cpy) {
this->_type = cpy._type;
}
return (*this);
}
void Cat::makeSound(void) const {
log("🔊", "Cat", "", "Mmmmmmeeeeeeeeoooooooowwwwww");
}