Added: C++ projects
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// Created by David Hackbarth on 21.09.26.
|
||||
//
|
||||
|
||||
#ifndef CLASSES_ENTITY_H
|
||||
#define CLASSES_ENTITY_H
|
||||
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class Entity
|
||||
{
|
||||
public:
|
||||
Entity(); // declared
|
||||
Entity(string name); // declared
|
||||
virtual ~Entity();
|
||||
|
||||
virtual string toString();
|
||||
void setName(string name);
|
||||
|
||||
protected:
|
||||
string _name = "";
|
||||
|
||||
private:
|
||||
}; // IMPORTANT: don't forget the semicolon
|
||||
|
||||
|
||||
#endif //CLASSES_ENTITY_H
|
||||
Reference in New Issue
Block a user