हिंदी

What is public access of a class? - Computer Applications

Advertisements
Advertisements

प्रश्न

What is public access of a class?

लघु उत्तरीय

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Class as the Basis of all Computation (Objects and Classes) - EXERCISES [पृष्ठ ३८४]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 6 Class as the Basis of all Computation (Objects and Classes)
EXERCISES | Q IV. 5. | पृष्ठ ३८४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×