5.26 Class Objects and Methods
18. Public: Member functions and data if any declared as public can be accessed outside the class
member functions. This means that public member can be accessed by any other code.
19. Package (default): You can access this from any other class in the same directory. Note that
when no access specifier is specified, default is public up to package level, but private to
members outside the package.
20. Private: Member data declared as private can only be accessed within the class member
methods and data is hidden from outside.
21. We cannot access private members directly. Instead, we need public accessory methods to
access these data.
22. Protected: Member data and member functions declared as protected is ...