Advertisements
Advertisements
प्रश्न
Name the access specifiers provided by Java.
लघु उत्तरीय
Advertisements
उत्तर
- default: Visible to the package and to the objects
- private: Visible to the class only and not to the objects
- public: Visible to the world and to the objects
- protected: Visible to the package and all to subclasses and the objects
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Encapsulation - Exercises [पृष्ठ १४८]
