Answer to Question #72781 in C++ for Moin
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
2018-01-24T06:23:19-0500
Answer to the question:
i)
void readtbook ()
void showtbook ()
int standard
char topic[20]
void readsciencebook()
void showsciencebook();
ii) a)
void readtbook();
void showtbook();
b)
void readtbook();
void showtbook();
void readsciencebook();
void showsciencebook();
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment