Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hallo,
ich hab eine kurze Frage: Was ist der Unterschied zwischen
const int method();
und
int method() const;
?
Verstehe ich irgendwie nicht so ganz...
Beim Ersteren ist der Datentyp int konstant, beim Letzteren drückt das const aus, dass keine Klassenmember modifiziert werden.