Menu

[solved] – Question 72781

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

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *