Click to follow our Afritutor YouTube Channel, subscribe and click notifications and get updates on new learning videos
<=Back
Write a C++ program that will carry out the following: (10 marks)
• define a class named circular that has data members named radius and height, a member function named set which is used to initialize the value of length and height and a virtual function named volume;
• implements a derived class from circular named cylinder whose radius and height
• implements a derived class from circular named cone whose radius and height are 14cm and 10cm respectively;
• outputs The volume for the cylinder and cone.
use pointers.
 Viewed: 297 times For Better experience and learning,for video answers, after video ends playing, click next question in the questions list!!!
Share in: