Advertisements
Advertisements
प्रश्न
A constructor is always:
पर्याय
Private
Protected
Secure
Public
MCQ
उत्तर
Public
Explanation:
Constructors are typically marked as public so that objects of a class can be generated from outside the class. A public constructor allows other classes to access the constructor and make instances of the class.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?