Question: Derived/Sub class: IceCreamCup: This class will extend / derive from IceCream //java implementation - implement your ilceCream interface //c++ implementation: use an initialization list in

Derived/Sub class: IceCreamCup: This class will extend / derive from IceCream //java implementation - implement your ilceCream interface //c++ implementation: use an initialization list in constructor // cup or cone Member: String type Methods: //Override this method addTopping (String topping) //Add logic that checks if the topping is a Bonnet & if so print 'sorry msg' and do not add. ( a bonnet is u dip the cone in some goo. Can't do with cup). display () //print the type member of this derived/extended class then invoke the base/super display() to use the common attribute display functionality /ll 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!