Question
For the Textbook object class from the previous question, override the Book toString method so that it returns a String of the format: author ;
For the Textbook object class from the previous question, override the Book toString method so that it returns a String of the format:
author ; title ; ISBN: ISBN ( yearPublished ); course ; required
where
1. author is the author instance variable's value,
2. title is the title instance variable's value,
3. ISBN is the ISBN instance variable's value,
4. yearPublished is the year instance variable's value,
5. course is the course for which the book has been assigned, and
6. required indicates whether the book is required (i.e., "not required" or "required")
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