Question 37Asked in Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)+ 1 more paper
What is encapsulation in OOP?ओओपी में एनकैप्सुलेशन क्या है?
ओओपी में एनकैप्सुलेशन क्या है?
AThe ability to inherit properties from multiple classesकई वर्गों से गुणों को विरासत में लेने की क्षमता
BThe process of creating objectsवस्तुओं को बनाने की प्रक्रिया
CThe bundling of data and methods that operate on the dataडेटा और विधियों का बंडलिंग जो डेटा पर काम करता है
DThe use of abstract classes onlyकेवल अमूर्त वर्गों का उपयोग
Show answerHide answer
Correct answer: (C)The bundling of data and methods that operate on the dataडेटा और विधियों का बंडलिंग जो डेटा पर काम करता है
Explanation
Encapsulation bundles data and the methods that operate on that data into a single unit (a class), and usually hides the internal data from outside access.Encapsulation डेटा और उस पर काम करने वाली मेथड को एक इकाई (क्लास) में बाँधता है और आमतौर पर आंतरिक डेटा को बाहरी पहुँच से छिपाता है।
From Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 2 (2:00 PM)