Chapter 15: Problem 2
Give a definition for a class SmartBut that is a derived class of the base class Smart, which we reproduce for you here. Do not bother with winclude directives or namespace details. class smart \\{ public: Smart( ) : void print_answer() const; protected: int a : int \(b\) \(y\) This class should have an additional data field, crazy, that is of type bool, one additional member function that takes no arguments and returns a value of type \(b o o l,\) and suitable constructors. The new function is named is_crazy. You do not need to give any implementations, just the class definition.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.