add example for "default constructor, copy constructor, destructor, if you need one you'll need all"
add smart pointer add pointer pointer
This commit is contained in:
@@ -3,16 +3,19 @@
|
||||
|
||||
Entity::Entity()
|
||||
{
|
||||
|
||||
std::cout << "Create Entity" << std::endl;
|
||||
}
|
||||
|
||||
Entity::Entity(std::string name) : name(name)
|
||||
{
|
||||
std::cout << "Create Entity with name" << std::endl;
|
||||
|
||||
//this->name = name;
|
||||
}
|
||||
|
||||
Entity::~Entity()
|
||||
{
|
||||
std::cout << "Destroy Entity" << std::endl;
|
||||
}
|
||||
|
||||
std::string Entity::ToString()
|
||||
|
||||
Reference in New Issue
Block a user