Files
gpd-924/CPlusPlus/Classes/Entity.h
T
2025-09-15 12:39:48 +02:00

19 lines
390 B
C++

#pragma once
#include <string>
namespace MyNamespace
{
class Entity
{
public:
Entity(); // constructor declaration
Entity(std::string n);
virtual std::string ToString() { return "Entity"; } // defined
void setName(std::string n) { _name = n; } // defined
std::string getName() { return _name; }
protected:
std::string _name = "";
}; // IMPORTANT: semicolon at the end
}