Inline-Methoden
Inline-Methoden
Inline-Methoden
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
class Konto<br />
{<br />
private: // Geschützte Elemente:<br />
string name; // Kontoinhaber<br />
unsigned long nr; // Kontonummer<br />
double stand; // Kontostand<br />
};<br />
public: // Öffentliche Schnittstelle:<br />
// Konstruktor, implizite inline<br />
Konto( const string& k_name = "X",<br />
unsigned long k_nr = 111111L,<br />
double k_stand = 0.00)<br />
{<br />
name = k_name;<br />
nr = k_nr;<br />
stand = k_stand;<br />
}<br />
void display();<br />
inline void Konto::display() // explizit inline<br />
{<br />
cout