2012年10月23日

virtual inheritance

摘要: Virtual inheritance is used to solve the problem of diamonds inheritance, 2 instance of base objects, in multiple inheritance. With the knowledge on c++ object model, we can understand virtual inheritance easily. Here is a sample code.#include<iostream>using namespace std;class Point2D_IF{ pub 阅读全文

posted @ 2012-10-23 18:20 Torstan 阅读(198) 评论(0) 推荐(0) 编辑

导航