- 1

Data Members and Member functions

class Book { char book_name[20], writer [20]; int no_of_pages; public: void read(); void show(); }; class Tbook: private Book { int no_of_lessons, no_of_exercises; protected: int standard; public: void readtbook(); void showtbook(); }; class sciencebook: public tbook { char topic[20]; public: void readsciencebook(); void showsciencebook(); }; (i) Name the data members and member functions which can be accessed from the member function of class sciencebook. (ii) Name the member functions which can be accessed by an object of (a) class tbook (b) class sciencebook

13th Dec 2017, 4:12 AM
Skanda Subramanyan
Skanda Subramanyan - avatar
1 Answer
0
This is not a website for your homework!
4th Jan 2018, 8:37 AM
Fahad
Fahad - avatar