Compare commits
No commits in common. "69411ac10f0c10bee6cf21d5d2381f02685e35d9" and "529a8606f2879bfa97b3a32c91aab6f85e2ce507" have entirely different histories.
69411ac10f
...
529a8606f2
@ -1,6 +1 @@
|
||||
#include "Klavier.h"
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
Klavier::Klavier() { cout << "Konstruktor: Klavier()" << endl; }
|
||||
Klavier::~Klavier() { cout << "Destruktor: ~Klavier()" << endl; }
|
||||
void Klavier::spielen() { cout << "Klavier klimpert" << endl; }
|
||||
|
||||
@ -1,18 +1 @@
|
||||
#include "Musikinstrument.h"
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
Musikinstrument::Musikinstrument() {
|
||||
cout << "Konstruktor: Musikinstrument()" << endl;
|
||||
}
|
||||
Musikinstrument::Musikinstrument(string name) {
|
||||
this->name = name;
|
||||
cout << "Konstruktor: Musikinstrument(string name): " << name << endl;
|
||||
}
|
||||
Musikinstrument::~Musikinstrument() {
|
||||
cout << "Destruktor: Irgentein Musikinstrument" << endl;
|
||||
}
|
||||
void Musikinstrument::spielen() {
|
||||
cout << "Irgentein Musikinstrument erklingt irgentwie" << endl;
|
||||
}
|
||||
string Musikinstrument::liefereName() { return name; }
|
||||
|
||||
@ -7,7 +7,7 @@ private:
|
||||
|
||||
public:
|
||||
Musikinstrument();
|
||||
Musikinstrument(std::string name);
|
||||
Musikinstrument(std::string iName);
|
||||
~Musikinstrument();
|
||||
virtual void spielen();
|
||||
std::string liefereName();
|
||||
|
||||
@ -1,6 +1 @@
|
||||
#include "Trompete.h"
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
Trompete::Trompete() { cout << "Konstruktor: Trompete()" << endl; }
|
||||
Trompete::~Trompete() { cout << "Destruktor: ~Trompete()" << endl; }
|
||||
void Trompete::spielen() { cout << "Trompete trötet" << endl; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user