d01 ex03 ref and ptr
This commit is contained in:
@@ -3,21 +3,19 @@
|
||||
Weapon::Weapon( std::string type ) {
|
||||
|
||||
this->_type = type;
|
||||
std::cout << "weapon constructor received : " << this->_type << std::endl;
|
||||
return;
|
||||
|
||||
}
|
||||
Weapon::~Weapon() {}
|
||||
|
||||
std::string Weapon::getType( void ) {
|
||||
std::string Weapon::getType( void ) const {
|
||||
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user