Beispiel #1
0
 void visit( Bird & bird ) override
 {
     bird.fly();
 }
Beispiel #2
0
void doFly(Bird& b) {
    cout << b.getType() << endl;
    b.fly();
    cout << endl;
}