add pointer

add "dynamic" heap array
add polymorphic
This commit is contained in:
2025-03-26 12:44:05 +01:00
parent abb1ea4a38
commit 4b6ac6a484
13 changed files with 339 additions and 1 deletions
+10
View File
@@ -6,6 +6,16 @@ Ork::Ork() : Monster(10)
this->name = "My Ork";
}
Ork::Ork(const Ork& other) : Monster(other._strength)
{
this->name = other.name;
this->_speed = other._speed;
}
Ork::~Ork()
{
}
void Ork::Move()
{
}