हिंदी

What is meant by private visibility of a method?

Advertisements

प्रश्न

What is meant by private visibility of a method? 

लघु उत्तरीय
Advertisements

उत्तर

Private methods in Java are only accessible within the class where they are declared. Private methods are contained in their respective classes, ensuring that they are not used elsewhere in the code. This offers them the confidence to adjust or modify the secret approach without negative consequences. 

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. 10. | पृष्ठ ३८४
Advertisements
Share
Notifications



      Forgot password?
Use app×