C++ Primer Chapter 15 (6 / 9)
文章平均质量分 80
Chen丶HC
这个作者很懒,什么都没留下…
展开
-
15.1, 15.2, 15.3, 15.5
//15.5 Access Control and Inheritance//A derived class member or friend may access the protected members of the base class only through a derived object./*class Base {protected: int prot_mem;原创 2017-06-24 09:07:08 · 487 阅读 · 0 评论 -
15.4. Abstract Base Classes
//Exercises Section 15.4//Exercise 15.15: Define your own versions of Disc_quote and//Bulk_quote.//Exercise 15.16: Rewrite the class representing a limited discount strategy,//which you wrote for原创 2017-06-26 16:25:08 · 225 阅读 · 0 评论 -
15.6. Class Scope under Inheritance
//15.6. Class Scope under Inheritanceclass Quote {public: Quote() = default; Quote(const string &book, double sales_price): bookNo(book), price(sales_price) { } string isbn() const { re原创 2017-06-26 16:29:37 · 164 阅读 · 0 评论