class TPet { virtual void run() = 0; };class TDog { void say() { cout << "Гав!"; } void run() { cout << "Побежал!"; }};
class TPet { int count; public: TPet() { count = 0; cout << count; } void say() { count ++; cout << count; } };int main(){ TPet p; p.say(); p.say();}