lst-0323-book.cpp
Keyboard& getKeyboard() {
cout << " getKeyboard()\n";
static Keyboard keyboard{}; // statische lokale Variable
return keyboard;
}
Keyboard& getKeyboard() {
cout << " getKeyboard()\n";
static Keyboard keyboard{}; // statische lokale Variable
return keyboard;
}