Question: Define a class called book with protected data members ISBN, title, author, price, edition and public member functions set(), get( ), display( ), and

Define a class called book with protected data members ISBN, title, author, price, edition and public member functions set(, 

Define a class called book with protected data members ISBN, title, author, price, edition and public member functions set(), get( ), display( ), and a parameterized constructor with default "" values for the data members. Define a class called textbook, which publicly inherits the class book. It has the private data members coureseCode, courseTitle and the public member functions set(), display( ), and a parameterized constructor with default "" values. Implement all member functions. Use the following driver: int main() { book MalikCop("1133626386", "C++ Programming: From Problem Analysis to Program Design", "D.S. Malik", "$27", "6th Edition"); MalikCpp.displav(): textbook CSII; CSIL.set("1133626386", "C++ Programming: From Problem Analysis to Program Design", "D.S. Malik", "$27", "6th Edition", "1501211", "Programming II"); CSII.displav(): return 0: } Sample output: The book information is as follow: ISBN is: 1133626386 Title is: C++ Programming: From Problem Analysis to Program Design Author is: D.S. Malik Price is: $27 Editon is: 6th Edition The book information is as follow: ISBN is: 1133626386 Title is: C++ Programming: From Problem Analysis to Program Design Author is: D.S. Malik Price is: $27 Editon is: 6th Edition The book is used as a textbook for the following course: Course code is: 1501211 Course title is: Programming II

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer Acc... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!