Advertisements
Advertisements
प्रश्न
Which keyword makes class members accessible outside the class in which they are declared?
पर्याय
Private
Protected
Public
Hidden
MCQ
उत्तर
Public
Explanation:
When a class member (such as a variable or method) is declared public, it becomes available from outside the class in which it is defined. This is used to grant other portions of the application access to specific class features or data.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?