Trompete implementiert, Klavier leicht angepasst
This commit is contained in:
parent
e56437fb06
commit
69411ac10f
@ -2,5 +2,5 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
Klavier::Klavier() { cout << "Konstruktor: Klavier()" << endl; }
|
Klavier::Klavier() { cout << "Konstruktor: Klavier()" << endl; }
|
||||||
Klavier::~Klavier() { cout << "Destruktor: Klavier()" << endl; }
|
Klavier::~Klavier() { cout << "Destruktor: ~Klavier()" << endl; }
|
||||||
void Klavier::spielen() { cout << "Klavier klimpert" << endl; }
|
void Klavier::spielen() { cout << "Klavier klimpert" << endl; }
|
||||||
|
|||||||
@ -1 +1,6 @@
|
|||||||
#include "Trompete.h"
|
#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