/ CPP_Modules / CPP_Module_01 / ex00 / Zombie.cpp
Zombie.cpp
 1  /* ************************************************************************** */
 2  /*                                                                            */
 3  /*                                                        :::      ::::::::   */
 4  /*   Zombie.cpp                                         :+:      :+:    :+:   */
 5  /*                                                    +:+ +:+         +:+     */
 6  /*   By: gychoi <gychoi@student.42seoul.kr>         +#+  +:+       +#+        */
 7  /*                                                +#+#+#+#+#+   +#+           */
 8  /*   Created: 2023/07/24 20:26:21 by gychoi            #+#    #+#             */
 9  /*   Updated: 2023/07/25 17:00:02 by gychoi           ###   ########.fr       */
10  /*                                                                            */
11  /* ************************************************************************** */
12  
13  #include "Zombie.hpp"
14  
15  Zombie::Zombie(const std::string& name)
16  {
17  	_name = name;
18  }
19  
20  Zombie::~Zombie(void)
21  {
22  	std::cout << _name << " is destroyed." << std::endl;
23  }
24  
25  void	Zombie::announce(void)
26  {
27  	std::cout << _name << ": BraiiiiiiinnnzzzZ..." << std::endl;
28  }