#include <iostream> #include <locale.h> using namespace std; class bird{ public: char *name; virtual void fly(){ cout<<name<<" u�uyor"<<endl; } }; class pigeon : public bird{ public : void fly(){ cout<<name<<" u�uyor"<<endl; cout<<" g�zelce"<<endl; } }; class falcon : public bird{ public : void fly(){ bird::fly(); cout<<" y�ksekte"<<endl; } }; int main0301(){ setlocale(LC_ALL,"Turkish"); pigeon p; p.name="Ak G�vercin"; p.fly(); falcon f; f.name="Kara Do�an"; f.fly(); bird b=p; b.name="Taban G�vercin"; b.fly(); pigeon *pp; pp=new pigeon(); pp->name="G�sterici G�vercin"; pp->fly(); bird *bp; bp=new pigeon(); bp->name="Taban G�sterici G�vercin"; bp->fly(); return 0; }Dosyayı İndir