OPR-PR/7_Musiker/code/Klavier.cpp

10 lines
323 B
C++

#include "Klavier.h"
#include "Musikinstrument.h"
#include <iostream>
using namespace std;
Klavier::Klavier() : Musikinstrument("Klavier") {
cout << "Konstruktor: Klavier()" << endl;
}
Klavier::~Klavier() { cout << "Destruktor: ~Klavier()" << endl; }
void Klavier::spielen() const { cout << "Klavier klimpert" << endl; }