Files
42_INT_09_piscine_cpp/d04/ex03/srcs/AMateria.cpp
2022-02-27 22:07:04 +01:00

15 lines
250 B
C++

#include "AMateria.hpp"
AMateria::AMateria(std::string const & type) {
_type = type;
}
std::string const & AMateria::getType() const {
return _type;
}
virtual AMateria * AMateria::clone() const {
AMateria clone = new AMateria;
return clone;
}