Is there a rule like how to use public default when inheriting classes or interfaces?
java access-modifiers
It's about specifying a range of access. You can designate it according to your needs.
Access is this way: public is accessible from anywhere, protected from subclass The default is the package, and the private is only accessible in the class.
© 2024 OneMinuteCode. All rights reserved.