1276
GB
Observer design pattern is used for?
IN
ऑब्जर्वर डिज़ाइन पैटर्न का उपयोग किसके लिए किया जाता है?
A
Single instance
एकल उदाहरण
B
Event handling and notification (publish-subscribe)
इवेंट प्रबंधन और अधिसूचना (प्रकाशन-सदस्यता लें)
C
Object creation
वस्तु निर्माण
D
Data compression
आधार - सामग्री संकोचन
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Observer pattern defines a one-to-many dependency so when one object changes state, all dependents are notified.
व्याख्या (हिन्दी)
ऑब्जर्वर पैटर्न एक-से-अनेक निर्भरता को परिभाषित करता है, इसलिए जब एक वस्तु स्थिति बदलती है, तो सभी आश्रितों को सूचित किया जाता है।