Question: Create TWO objects of Book in a main () method. The first object will have the following initial values: Book title: Author: ISBN: Data
Create TWO objects of Book in a main () method. The first object will have the following initial values: Book title: Author: ISBN: Data Structures Philips Hamilton 6601-9863-6785 The second object will have the following initial values: Book title: Author: ISBN: Advanced C++ Joseph Lee 4501-3245-4677 Display the attribute values of each object. Compare the title of the two books above and display a message to indicate whether these books having the same title or vice versa by using the method compareTitle().
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
