2016年5月11日
摘要: 1 公有继承 公有继承包含两部分:一是 "函数接口" (interface),二是 "函数实现" (implementation) 如 Shape 类中,三个成员函数,对应三种继承方式: class Shape { public: virtual void Draw() const = 0; // 阅读全文
posted @ 2016-05-11 20:58 飞鸢逐浪 阅读(109740) 评论(13) 推荐(18) 编辑