Library with Author
Step-by-Step Enhancements
-
Define the Author Case Class: Add a case class to represent an author with attributes like name and nationality.
-
Update the Book Case Class: Modify the
Bookcase class to include anAuthor. -
Create a Shopping Basket Class: Define a class to manage the shopping basket, including adding books and calculating the total cost.
-
Update the Library Management System: Update the main application to include the new
Authorcase class and the shopping basket functionality.