20 lines
264 B
C++
20 lines
264 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
class Animal
|
|
{
|
|
public:
|
|
Animal();
|
|
Animal(const Animal& src);
|
|
Animal &operator=(const Animal& src);
|
|
virtual ~Animal();
|
|
|
|
std::string getType() const;
|
|
|
|
virtual void makeSound() const;
|
|
|
|
protected:
|
|
std::string type;
|
|
};
|