1 /* 2 * termin.h 3 * 4 * Beispielprogramm Vererbung. 5 * 6 * Autor: H.Drachenfels 7 * Erstellt am: 10.2.2021 8 */
9 #ifndef TERMIN_H
10 #define TERMIN_H
11
12 #include "datum.h"
13 #include <string>
14
15 class termin // Oberklasse: ohne final
16 {
17 private:
18 datum wann;
19 std::string was;
20 public:
21 termin(const datum&, const std::string&);
22 virtual ~termin() = default; // Oberklasse: dynamische Bindung
23
24 // Entity-Klasse: keine Copy-Move-Semantik
25 termin(const termin&) = delete;
26 termin& operator=(const termin&) = delete;
27 termin(termin&&) = delete;
28 termin& operator=(termin&&) = delete;
29
30 void verschieben(const datum&);
31 datum get_datum() const;
32 std::string get_beschreibung() const;
33 };
34
35 #endif
36