Question: Define a class called book with protected data members ISBN, title, author, price, edition and public member functions ser().ger), display(), and a parameterized constructor with
Define a class called book with protected data members ISBN, title, author, price, edition and public member functions ser().ger), 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 courseCode, 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", "CH Programming: From Problem Analysis to Program Design", "D.S. Malik", "$27", 6th Edition"); MalikCpp.display: textbook CSI: CSIL.set("1133626386", "C++ Programming: From Problem Analysis to Program Design", "D.S. Malik", "$27", "6th Edition", "1501211", "Programming II"); CSII.displayo: return 0; Sample output: The book Information is as followed the Cottrening Tree Problem Analysis to progrebetler wuthor Price is 329 ditos is dit The book information is as follow SAN 123366136 Title is C Program From Problem Analysis to Program Design Huthor 15: 0.5 Price is $27 Editos sroth Edition the book textbook for the following core Course the Is Programming IT 2/2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
