多继承、虚继承

class BaseA{};

class BaseB{};

多继承:class C :public BaseA,Public BaseB{};

虚继承:class D:virtual public BaseA{};

 

posted @ 2016-09-19 21:50  朱小勇  阅读(146)  评论(0编辑  收藏  举报