- 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
1 Odpowiedź
0
This is not a website for your homework!