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 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
Get step-by-step solutions from verified subject matter experts
