Which modifier is used to specify that a method Cannot be used outside a class?

Any variable, method, or class declared to use the default access modifier cannot be accessed by any other class outside of the package from which it was declared.

Sizin İçin Seçtik  Which of the following modifiers are used to control access to a class member?

Leave a Reply

Your email address will not be published. Required fields are marked *