Exercise Number: 2
Public Access Modifier
- Scenario: Extend the library system to have a public
Library
class that can be accessed from other packages.- Task: Create a
Library
class with a public methodaddBook
and call this method from a classMain
in a different package.
- Task: Create a