Where do we use private class in Java?

Private: The private access modifier is specified using the keyword private. The methods or data members declared as private are accessible only within the class in which they are declared . Any other class of the same package will not be able to access these members.25 May 2021

Sizin İçin Seçtik  What is true about an anonymous inner class?

Leave a Reply

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