ClapTrap default constructor message fixed

This commit is contained in:
Angel Ortigosa Perez
2025-10-26 20:41:27 +01:00
parent 6ecb191180
commit 6ca0fefbe2
6 changed files with 7 additions and 3 deletions

View File

@@ -16,7 +16,8 @@ ClapTrap::ClapTrap() :
name("(NULL)"), health(10),
energy(10), attackDamage(0)
{
std::cout << "Default constructor called" << std::endl;
std::cout << "ClapTrap default constructor called " << this->name
<< std::endl;
}
ClapTrap::ClapTrap(std::string name) :