Question
C programming Using this as your base code: https://ideone.com/fork/M5NCO7 See if you can add two other attributes about a book, an example would be: number
C programming
Using this as your base code: https://ideone.com/fork/M5NCO7
See if you can add two other attributes about a book, an example would be: number of pages. You would need to add them as new data members in the private section within the class and create a "getter" function for each of them. Then you will need to add both of them to the constructor function called "assign" as well. Finally, you'll need to pass that information of these two attributes when you call the constructor "assign" in the main function for each of your 5 books. This is really just an extension of the code below.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started