From 8a9ee0c91a97921e6511a8723cbad4997c6f1185 Mon Sep 17 00:00:00 2001 From: Yue Wang Date: Wed, 18 Mar 2015 19:17:35 +1300 Subject: [PATCH] fixed : #154 --- ch15/ex15.5.6/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ch15/ex15.5.6/main.cpp b/ch15/ex15.5.6/main.cpp index 7ee5e6b1..8d9de3af 100644 --- a/ch15/ex15.5.6/main.cpp +++ b/ch15/ex15.5.6/main.cpp @@ -11,7 +11,9 @@ // class Base { ... }; // (a) class Derived : public Derived { ... }; //incorrect, deirve from itself // (b) class Derived : private Base { ... }; //incorrect, this is a definition not a declaration -// (c) class Derived : public Base; //correcct. +// (c) class Derived : public Base; //incorrect, A derived class is declared like any other class. The declaration + //contains the class name but does not include its derivation list. + //@ reported by lafener, check #154 for detail. //! Exercise 15.5: //! Define your own version of the Bulk_quote class. //!