Exercise Number: 1
Default Access Modifier
- Scenario: You are creating a package for a library management system. Inside this package, create a class
Book
with a methoddisplayDetails
which prints the details of the book.- Task: Create the
Book
class with default access and another classLibrary
in the same package. Call thedisplayDetails
method from theLibrary
class to show the book details.
- Task: Create the