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