write a program of constructors and


Write a program of constructors and destructors

Make a class drugs having encapsulated data for medicine name, whether solid or liquid, price and purpose of use. From this class derive two classes, Ayurvedic and Allopathic. The class Ayurvedic should additionally store data on the herbs used, association to be used (whether honey or water). The class Allopathic should additionally include data on the chemicals used and the weight in milligrams. The classes should have constructors and destructors. They should contain functions to accept data and display the data. The main () should test the derived classes.

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: write a program of constructors and
Reference No:- TGS0309465

Expected delivery within 24 Hours