one implementation of the exam
This commit is contained in:
16
cpp_module_02/Polymorph.hpp
Normal file
16
cpp_module_02/Polymorph.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef POLYMORPH_HPP
|
||||
#define POLYMORPH_HPP
|
||||
|
||||
# include "ASpell.hpp"
|
||||
|
||||
class Polymorph: public ASpell {
|
||||
public:
|
||||
Polymorph(): ASpell("Polymorph", "turned into a critter") {};
|
||||
~Polymorph() {};
|
||||
|
||||
virtual ASpell * clone() const {
|
||||
return (new Polymorph());
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user