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 [पृष्ठ १४८]
