How do you define public class?

public is a Java keyword which declares a member’s access as public . Public members are visible to all other classes. This means that any other class can access a public field or method. Further, other classes can modify public fields unless the field is declared as final .

Sizin İçin Seçtik  Artı neden kottan atıldı?

Leave a Reply

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

How do you define public class?

public is a Java keyword which declares a member’s access as public . Public members are visible to all other classes. This means that any other class can access a public field or method. Further, other classes can modify public fields unless the field is declared as final .

Sizin İçin Seçtik  What is class and object explain with syntax and example?

Leave a Reply

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