Q: The keyword struct and class differ in C++ context- C++ में कीवर्ड और वर्ग भिन्न होता है–
A.
struct is used in C where as class in used in C++ स्ट्रक्ट C का उपयोग करता है जबकि वर्ग C++ का उपयोग करता है
B.
Struct can not have member functions where as a class can have/स्ट्रक्ट में सदस्य फंक्शन नहीं होते जबकि वर्ग में होते है
C.
Struct has default public, class has default private/स्ट्रक्ट डिफाल्ट सार्वजनिक है जबकि वर्ग डिफॉल्ट निजी है
D.
All of the above/उपरोक्त सभी
Correct Answer:
Option C - एक संरचना (struct) और एक वर्ग (class) के बीच अन्तर डिफाल्ट रूप से गलती से उपयोग होता है एक संरचना (struct) के सभी सदस्य सार्वजनिक होते हैं जबकि एक वर्ग में सभी मेम्बर्स निजी होते हैं।
C. एक संरचना (struct) और एक वर्ग (class) के बीच अन्तर डिफाल्ट रूप से गलती से उपयोग होता है एक संरचना (struct) के सभी सदस्य सार्वजनिक होते हैं जबकि एक वर्ग में सभी मेम्बर्स निजी होते हैं।
Explanations:
एक संरचना (struct) और एक वर्ग (class) के बीच अन्तर डिफाल्ट रूप से गलती से उपयोग होता है एक संरचना (struct) के सभी सदस्य सार्वजनिक होते हैं जबकि एक वर्ग में सभी मेम्बर्स निजी होते हैं।
Download Our App
Download our app to know more Lorem ipsum dolor sit amet consectetur adipisicing elit.
Excepturi, esse.
YOU ARE NOT LOGIN
Unlocking possibilities: Login required for a world of personalized
experiences.