Click to follow our Afritutor YouTube Channel, subscribe and click notifications and get updates on new learning videos
<=Back
Champo a second year diploma student has been given the following tasks:
• Create an abstract class called shape which contains a pure virtual function called find_vol() and a protected attribute named as volume;
• Create two new derived classes from the above class named as cube and sphere having double type attribute named as side and radius respectively;
• Implement dynamic polymorphism to find out volume of cube, a sphere and display the results.
Write a C++ program code to accomplish the tasks
 Viewed: 284 times For Better experience and learning,for video answers, after video ends playing, click next question in the questions list!!!
Share in: