imagine a publishing company that markets both book and audiocassette versions of its works. create a publication that stores title (a string) and price (type int) of a publication. From this class derive two classes book which adds page count (type int) and author (a string) and tape which adds a playing time in minutes (type float) each of these three class should have getdata function to get its data from user at keyboard and putdata function to display its data . write a main() program to test the book and tape classes by creating instances of them asking user to fill in data with getdata and then displaying the data with putdata function. you have to get data of two different book and tape and write a completedata() where have to show the costly book and lengthy tape
Comments
Leave a comment