Question: IceCreamCone: This class will extend / derive from IceCream //c++ implementation: use an initialization list in constructor Members: //cup or cone String type Methods: //Override.
IceCreamCone: This class will extend / derive from IceCream //c++ implementation: use an initialization list in constructor Members: //cup or cone String type Methods: //Override. Add logic that checks if the topping is a banana if so print 'sorry msg and do not add. addTopping (String topping) // note: c++ string. compare() similar to java string. equals(). returns O if true //Implementation will need to call the addTopping() method of your Topping member display () // display functionality hints: // Override. print the type member of this derived/extended class then invoke the base/super // display() to use the common attribute display functionality /*i.e. output could be: My cone is chocolate with nuts, sprinkles & gummy worms where the 'My cone is' part comes from the derived //class, the rest from the base. (note: C++ derived method can access base method from within derived method via: Base::MethodName() ) */
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
