Files
42_INT_09_piscine_cpp/d01/ex03/Weapon.cpp
2022-02-06 10:50:35 +01:00

24 lines
461 B
C++

#include "Weapon.hpp"
Weapon::Weapon( std::string type ) {
this->_type = type;
std::cout << "weapon constructor received : " << this->_type << std::endl;
}
Weapon::~Weapon() {}
std::string Weapon::getType( void ) {
return this->_type;
std::cout << "weapon getType() return : " << this->_type << std::endl;
}
void Weapon::setType( std::string type ) {
this->_type = type;
std::cout << "weapon setType() received : " << this->_type << std::endl;
}