Made class name getter, can not be set outside of class

This commit is contained in:
andreja6
2018-04-30 21:43:02 -07:00
parent 529821ab9f
commit 9986f2ee5f
3 changed files with 17 additions and 8 deletions

View File

@@ -8,5 +8,8 @@ public:
virtual ~Instance(void);
std::string name;
Instance* parent; // Another pointer.
std::vector<Instance*> children; // All children.
std::string getClassName();
protected:
std::string className;
};