Added: C++ projects
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// Created by David Hackbarth on 21.09.26.
|
||||
//
|
||||
|
||||
#include "Ork.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
Ork::Ork(string name) : Monster(name)
|
||||
{
|
||||
cout << "Ork constructor with name called" << endl;
|
||||
}
|
||||
|
||||
Ork::~Ork()
|
||||
{
|
||||
cout << "Ork destructor called" << endl;
|
||||
}
|
||||
|
||||
string Ork::toString()
|
||||
{
|
||||
return "Ork: " + _name;
|
||||
}
|
||||
|
||||
void Ork::testMethod()
|
||||
{
|
||||
cout << "testMethod called" << endl;
|
||||
}
|
||||
Reference in New Issue
Block a user