Cat.hpp
 1  /* ************************************************************************** */
 2  /*                                                                            */
 3  /*                                                        :::      ::::::::   */
 4  /*   Cat.hpp                                            :+:      :+:    :+:   */
 5  /*                                                    +:+ +:+         +:+     */
 6  /*   By: gychoi <gychoi@student.42seoul.kr>         +#+  +:+       +#+        */
 7  /*                                                +#+#+#+#+#+   +#+           */
 8  /*   Created: 2023/08/15 16:05:09 by gychoi            #+#    #+#             */
 9  /*   Updated: 2023/08/16 22:32:30 by gychoi           ###   ########.fr       */
10  /*                                                                            */
11  /* ************************************************************************** */
12  
13  #pragma once
14  #ifndef __CAT_HPP__
15  # define __CAT_HPP__
16  # include "Animal.hpp"
17  
18  class	Cat : public Animal
19  {
20  	private:
21  		std::string	name;
22  
23  	public:
24  		Cat(void);
25  		virtual ~Cat(void);
26  		explicit Cat(std::string name);
27  		Cat(Cat const& target);
28  		Cat&	operator=(Cat const& target);
29  
30  		virtual std::string	getType(void) const;
31  		std::string			getName(void) const;
32  
33  		virtual void	makeSound(void) const;
34  };
35  
36  #endif	/* __CAT_HPP__ */