MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / Book

Class Book

Lab_15/Source.cpp:33–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31};
32
33class Book : public Publication
34{ // derived class from Publication
35private:
36 int page_count;
37
38public:
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
52class Tape : public Publication
53{ // derived class from Publication

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected