От: | tripol | ||
Дата: | 29.04.10 09:59 | ||
Оценка: |
#include "stdafx.h"
#include <iostream>
using namespace std;
class A
{
public:
virtual void Destroy()
{
cout << "A::Destroy()" << endl;
}
};
class B: public A
{
public:
virtual void Destroy()
{
cout << "B::Destroy()" << endl;
}
};
int _tmain(int argc, _TCHAR* argv[])
{
B b;
b.Destroy(); // как здесь вызвать только A::Destroy() ?
return 0;
}