Advertisements
Advertisements
प्रश्न
State True or False.
Member data and methods declared under private access specifier are available to all other methods from any other class.
सत्य या असत्य
Advertisements
उत्तर
This statement is false.
Explanation:
Member data and methods declared under the private access specifier are available only within the same class. They cannot be accessed directly by methods of other classes.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Encapsulation - Exercises [पृष्ठ १४९]
