class base{
public: virtual void display(){ cout << "base" << endl; }};class drive : private base{ public: virtual void display(){ cout << "drive" << endl; }};int _tmain(int argc, _TCHAR* argv[]){ //base* b = new drive; //errorbase* b = (base*)new drive; //right
b->display(); //drive}