Answer to Question #213946 in C++ for Hemambar

Question #213946

Write a program for a publishing company that markets both printed books and audio visual

lectures stored on CDs. Write a class Publication thatstores title and price. Derive a class book which

has an additional member as no_pages and a class Lecture with member play_time.


1
Expert's answer
2021-07-11T14:38:49-0400
#include<iostream>
using namespace std;
class Publication {
private:
string title;
double price;
};
class Book: public Publication {
private:
int no_pages;

};
class Lecture: public Publication {
private:
float play_time;


};

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS