| 123456789101112131415161718192021222324252627282930313233343536 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* Zombie.cpp :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@gmail.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2025/07/15 13:44:24 by bchanot #+# #+# */
- /* Updated: 2025/07/15 14:48:08 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #include "Zombie.hpp"
- #include <iostream>
- Zombie::Zombie(std::string name) : _name(name) {
- std::cout << "Constructor of " << name << "called" << std::endl;
- return ;
- }
- Zombie::Zombie(void) : _name("defaultName") {
- std::cout << "Constructor of " << this->_name << "called" << std::endl;
- return ;
- }
- Zombie::~Zombie(void) {
- std::cout << "Destructor of " << this->_name << "called" << std::endl;
- return ;
- }
- void Zombie::announce(void) const {
- std::cout << this->_name << ": BraiiiiiiiinnnnzzzzZ..." << std::endl;
- }
- void Zombie::setZombie(std::string name) {
- this->_name = name;
- }
|