Hallo Markus,
03_person.cpp:47: Fehler: keine passende Funktion für Aufruf von »Person::Person()«
Die Fehlermeldung ist etwas verwirrend, da sie zwar in Zeile 47 auftaucht, in der zwar Person (...) steht, allerdings sich auf die vorige Zeile bezieht. Du schreibst:
Schueler::Schueler(int a, int g, string n) {
Person(a, g, n);
}
Korrekt wäre:
~~~c++
Schueler::Schueler(int a, int g, string n) : Person(a, g, n) {
}
Viele Grüße,
Christian
--
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." - Bjarne Stroustrup
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." - Bjarne Stroustrup