Question: C++ hi , i need the program written in cpp . i want two headers and one main and three cpp. book.h textbook.h bookimp.cpp driver.cpp
C++
hi , i need the program written in cpp . i want two headers and one main and three cpp.
book.h
textbook.h
bookimp.cpp
driver.cpp
tectbookimp.cpp
and main

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 MalikCpp("1133626386", "C++ Programming: From Problem Analysis to Program Design", "D.S. Malik", "$27", "6th Edition"); MalikCpp.display(); textbook CSII; CSII.set("1133626386", "C++ Programming: From Problem Analysis to Program Design", "D.S. Malik", "$27", "6th Edition", "1501211", "Programming II"); CSII.display(); 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
