Advertisements
Advertisements
प्रश्न
In what way does a class enforce data hiding?
लघु उत्तर
उत्तर
A class is a template for creating objects. Private methods and variables are only accessible within the class. These are only accessible internally and remain hidden from the outer world that a class promotes data hiding.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?