What is a public method in Java?

Public methods are methods that are accessible both inside and outside the scope of your class . Any instance of that class will have access to public methods and can invoke them.

Sizin İçin Seçtik  How many ways can we create object in C++?

Leave a Reply

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