Question: c++ 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
c++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, course Title and the public member functions ser( ), display(), and a parameterized constructor with default" values. Implement all member functions. Use the following driver: int main() book MalikCpp("1133626386", "C++ Programming: From Problem Analysis to Program Design", "D.S. Malik", "527", "6th Edition"); MalikCpp.displayo: textbook CSII; CSII.set("1133626386", "CH+ Programming: From Problem Analysis to Program Design", "D.S. Malik", "S27", "6th Edition", "1501211", "Programming II"); CSIL display: return 0; } Sample output: The book Information is as follows ISBN13: 1133626386 Title is: 6 Programming: From Problee 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 Probler Analysis to Program Design Author 1st 0.5, Malik Price is: $27 Editon is: 6th Edition The book is used as a textbook for the following courses Course code is: 1501211 Course title is: Programing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
