Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedc++
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions