29 lines
332 B
C++
29 lines
332 B
C++
#ifndef ANIMAL_HPP
|
|
# define ANIMAL_HPP
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
class Animal {
|
|
|
|
public:
|
|
|
|
Animal( void );
|
|
Animal( Animal const & src );
|
|
~Animal( void );
|
|
Animal & operator=( Animal const & rhs );
|
|
|
|
virtual void makeSound() const;
|
|
std::string getType() const;
|
|
|
|
protected:
|
|
|
|
std::string type;
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
#endif
|
|
|