Logo 
Search:

C++ Programming Forum

Ask Question   UnAnswered
Home » Forum » C++ Programming       RSS Feeds

class

  Asked By: Aravinth    Date: Sep 28    Category: C++ Programming    Views: 408
  

imagine the publishing company that markets book and audiocassette versions.create a class publication that stores the title and price of publication.from this class derive two class book, which adds page count and tape adds playing time in minutes .each of three class should have getdata() function to get data from user .putdata() function to display the data.write main program that create an array of pointer to publication. In loop, ask the user for data about particular book or tape and use new to create an object of type book or tape to hold the data. Put the pointer to object in array. When the user finished entering data for all books and tape, display the resulting data for all books and tape entered.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on class Or get search suggestion and latest updates.




Tagged: