English

What is public access of a class? - Computer Applications

Advertisements
Advertisements

Question

What is public access of a class?

Short Answer

Solution

A class designated public can be accessed by any other class. A public class's fields, methods, and blocks can be accessed from any other Java class. To access a public class from a separate package, it must be imported first. 

shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Class as the Basis of all Computation (Objects and Classes) - EXERCISES [Page 384]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 6 Class as the Basis of all Computation (Objects and Classes)
EXERCISES | Q IV. 5. | Page 384
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×