Member Functions : enterdrugdetails(), showdrugdetails(), entertabletdetails(), showtabletdetails() iv. enterdrugdetails(),showdrugdetails(), entertabletdetails(), showtabletdetails (), enterdetails(), showdetails() Consider the following code and answer the questions below: class Publisher { char pub[12]; double turnover; protected: void register(); public: Publisher(); void enter(); void display(); }; class Branch { char city[20]; protected: float employees; public: Branch(); void haveit(); void giveit(); }; class Author : private Branch, public Publisher { int acode; char aname[20]; float amount; public: Author(); void start(); void show(); }; Write the names of data members, which are accessible from objects belonging to class Author. Write the names of all the member functions which are accessible from objects belonging to class Branch. Write the names of all the members which are accessible from member functions of class Author. How many bytes will be required by an object belonging to class Author? Answers: None haveit() giveit()
Member Functions : enterdrugdetails(), showdrugdetails(), entertabletdetails(), showtabletdetails() iv. enterdrugdetails(),showdrugdetails(), entertabletdetails(), showtabletdetails (), enterdetails(), showdetails() Consider the following code and answer the questions below: class Publisher { char pub[12]; double turnover; protected: void register(); public: Publisher(); void enter(); void display(); }; class Branch { char city[20]; protected: float employees; public: Branch(); void haveit(); void giveit(); }; class Author : private Branch, public Publisher { int acode; char aname[20]; float amount; public: Author(); void start(); void show(); }; Write the names of data members, which are accessible from objects belonging to class Author. Write the names of all the member functions which are accessible from objects belonging to class Branch. Write the names of all the members which are accessible from member functions of class Author. How many bytes will be required by an object belonging to class Author? Answers: None haveit() giveit()
450576420hots_cpp_class_xii.docx