// CMemory.cpp : Defines the entry point for the console application.//#include "stdafx.h"#includeusing namespace std;class Base {public: virtual void f() { cout << "Base::f" << endl; } virtual void g() { cout << "Base::g" << endl; } virtual void h() { cout << "Base::h" << endl; }};class Derive:public Base{public: virtual void f() { cout << "Derive::f" << endl; }// virtual void g() { cout << "Derive::g" << endl; } virtual void h() { cout << "Derive::h" << endl; }};int main(int argc, char* argv[]){ typedef void (*Pfunc)(void); Base b; cout<<"vptr addr: "<<(int *)&b<