| 31 | }; |
| 32 | |
| 33 | class Book : public Publication |
| 34 | { // derived class from Publication |
| 35 | private: |
| 36 | int page_count; |
| 37 | |
| 38 | public: |
| 39 | void getdata() |
| 40 | { |
| 41 | Publication::getdata(); // getdata() of class Publicaton |
| 42 | cout << " Number of pages: "; |
| 43 | cin >> page_count; |
| 44 | } |
| 45 | void showdata() |
| 46 | { |
| 47 | Publication::showdata(); // showdata() of class Publication |
| 48 | cout << " Number of pages: " << page_count << endl; |
| 49 | } |
| 50 | }; |
| 51 | |
| 52 | class Tape : public Publication |
| 53 | { // derived class from Publication |
nothing calls this directly
no outgoing calls
no test coverage detected