Question: in c++ 1. (30 points) Write a program that will demonstrate polymorphism. One possible answer is simulating a bowl of rice krispies. This would require

 in c++ 1. (30 points) Write a program that will demonstrate

in c++

1. (30 points) Write a program that will demonstrate polymorphism. One possible answer is simulating a bowl of rice krispies. This would require a base class Rice and 3 derived types Snap, Crackle and Pop that will implement a virtual member function talk. When the talk method/member function is called the member function for the correct class should be called

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!