Computer Science, asked by Emjacobs, 1 year ago

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

Answers

Answered by Riyaz786
1
I think this question is incorrect
so you explain this question

Emjacobs: no, this is the right question.
Mustakim789: Yes, this is right question
Riyaz786: thanks
Riyaz786: but I don't know
akshayrathour1p2yp6f: This is the right question ok
Similar questions