06 2013 档案

C++ Primer 读书笔记 - 第十五章
摘要:1. OOP基于三个基本概念 - data abstraction,inheritance,dynamic binding. 其关键思想是多态性(polymorphism)。2. 定义为virtual的函数是基类期待派生类重新定义的,基类希望派生类继承的函数不能定义为虚函数。3. virtual关键字只能出现在类体内的声明中,不能出现在类体外的定义中。4. 派生类只能通过派生类对象访问其基类的protected成员,派生类对其基类类型对象的protected成员没有特殊访问权限。void Bulk_item::memfcn(const Bulk_item &d, const Item_ 阅读全文

posted @ 2013-06-04 02:36 NULL00 阅读(1734) 评论(0) 推荐(1)

C++ Primer 读书笔记 - 第十四章
摘要:1. An overloaded operator must have at least one operand of class or enumeration type.2. Default arguments for overloaded operators are illegal, except for operator(), the function-call operator.3. The assignment (=), subscript ([]), call (()), and member access arrow (->) operators must be defin 阅读全文

posted @ 2013-06-02 00:59 NULL00 阅读(692) 评论(0) 推荐(0)

导航