d04 ex00 gestion virtual destructor et ajout messages constructors et destructors
This commit is contained in:
27
d04/ex00/WrongAnimal.hpp
Normal file
27
d04/ex00/WrongAnimal.hpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef WRONG_ANIMAL_HPP
|
||||
# define WRONG_ANIMAL_HPP
|
||||
|
||||
#include "color.h"
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
class WrongAnimal {
|
||||
|
||||
public:
|
||||
|
||||
WrongAnimal( void );
|
||||
WrongAnimal( WrongAnimal const & src );
|
||||
virtual ~WrongAnimal( void );
|
||||
WrongAnimal & operator=( WrongAnimal const & rhs );
|
||||
|
||||
void makeSound() const;
|
||||
std::string getType() const;
|
||||
|
||||
protected:
|
||||
|
||||
std::string type;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user