B) Create a C++ base class Media. Derive two different classes from it, class NewsPaper with data members N_Name, NEditor, N_Price, No_ofPages and class Magazine with data members M_Name, M_Editor, M_Price. Write a C++ program to accept and display information of both NewsPaper and Magazine. (Use pure virtual function) [Marks 25]
0 Comments