Trompete implementiert, Klavier leicht angepasst

This commit is contained in:
Tobias Kachel 2026-05-27 13:55:29 +02:00
parent e56437fb06
commit 69411ac10f
2 changed files with 6 additions and 1 deletions

View File

@ -2,5 +2,5 @@
#include <iostream>
using namespace std;
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; }

View File

@ -1 +1,6 @@
#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; }