Computer Science, asked by ritubishwas98890, 1 year ago

1.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 showssciencebook();
};

2.Name the data members and members function which can be accessed from the member function of class sciencebook.

3.Name the member functions which can be acessed by an object of (a) class tbook (b) class sciencebook.

Answers

Answered by ayushaju
1
2-data member and member function are void read and void show()
3(a)void showtbook();
(b)void showssciencebook();
Similar questions