Question 56Asked in Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 1

What is an abstract class in OOP?OOP (ऑब्जेक्ट ओरिएंटेड प्रोग्रामिंग) में एक एब्सट्रैक्ट क्लास क्या है?

OOP (ऑब्जेक्ट ओरिएंटेड प्रोग्रामिंग) में एक एब्सट्रैक्ट क्लास क्या है?
  1. AA class with no methodsएक क्लास जिसमें कोई मेथड नहीं है।
  2. BA class that cannot be instantiatedएक क्लास जिसका इंस्टेंस नहीं बनाया जा सकता
  3. CA class that can only have private membersएक क्लास जिसमें केवल प्राइवेट मेम्बर हो सकते हैं।
  4. DA class that cannot have methods with parametersएक क्लास जिसमें पैरामीटर के साथ विधियाँ नहीं हो सकतीं है।
Show answerHide answer

Correct answer: (B) A class that cannot be instantiatedएक क्लास जिसका इंस्टेंस नहीं बनाया जा सकता

Explanation

An abstract class cannot be instantiated directly. It may have abstract and concrete methods, and subclasses must implement its abstract methods.एब्सट्रैक्ट क्लास का सीधे instance नहीं बनाया जा सकता। उसमें abstract और concrete दोनों मेथड हो सकते हैं, और सबक्लास को उसके abstract मेथड लागू करने होते हैं।

From Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 1

This is question 56 of Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 1. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.