Imagine a publishing company that markets both book and audiocassette versions of its works. I it markets both book and audiocassette versions of its works. create a class called publication that...


Imagine a publishing company that markets both book and audiocassette versions of its works. I it markets both book and audiocassette versions of its works.


create a class called publication that stores the title (a string) and price (type float)  and date of a publication.


 Provide getters/setters and constructor also write an abstract method isOversize()


.From this class derive two classes: book, which adds a page count (type int); and tape, which adds a playing time in minutes (type float).


 Each of the classes should have a getter/setters and constructors and provide definition to function called isOversize() to the book and tape classes. Let’s say that a book with more than 800 pages, or a tape with a playing time longer than 90 minutes (which would require two cassettes), is considered oversize.


You can access this function from main() and display the string “Oversize” for oversize books and tapes when you display their other data.


explain the working in your words



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here