Back-End Programming Exam  >  Back-End Programming Videos  >  Learn to Program with C++: Beginner to Expert (in Hindi)  >  156. Characteristics of Pure Virtual Function in C++ (Hindi)

156. Characteristics of Pure Virtual Function in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

FAQs on 156. Characteristics of Pure Virtual Function in C++ (Hindi) Video Lecture - Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

1. प्योर वर्चुअल फंक्शन के क्या विशेषताएं हैं?
उत्तर: प्योर वर्चुअल फंक्शन को वो फंक्शन कहते हैं जिसका बेस क्लास में कोई डिफ़ॉल्ट इम्प्लीमेंटेशन नहीं होती है। इसके लिए बेस क्लास में वर्चुअल कीवर्ड का उपयोग किया जाता है। इसे अबस्ट्रैक्ट फंक्शन भी कहा जाता है क्योंकि इसे कोई डिफ़ॉल्ट इम्प्लीमेंटेशन नहीं होती है।
2. प्योर वर्चुअल फंक्शन का उपयोग किसलिए किया जाता है?
उत्तर: प्योर वर्चुअल फंक्शन का उपयोग अभिव्यक्ति करने के लिए किया जाता है। यह बेस क्लास में एक अभिकल्पी डिफ़ॉल्ट अभिव्यक्ति प्रदान करता है और उसे अपने डेराइव्ड क्लासों में ओवरराइड किया जा सकता है।
3. प्योर वर्चुअल फंक्शन और अभिकल्पी फंक्शन के बीच क्या अंतर है?
उत्तर: प्योर वर्चुअल फंक्शन और अभिकल्पी फंक्शन दोनों अभिकल्पी फंक्शन हैं, लेकिन अभिकल्पी फंक्शन एक डिफ़ॉल्ट इम्प्लीमेंटेशन प्रदान करता है जबकि प्योर वर्चुअल फंक्शन का कोई डिफ़ॉल्ट इम्प्लीमेंटेशन नहीं होती है।
4. प्योर वर्चुअल फंक्शन को क्या शर्तें पूरा करनी होती हैं?
उत्तर: प्योर वर्चुअल फंक्शन को निम्नलिखित शर्तें पूरी करनी होती हैं: 1. यह केवल बेस क्लास में घोषित की जा सकती है। 2. इसे वर्चुअल कीवर्ड का उपयोग करके घोषित किया जाता है। 3. इसे बेस क्लास में अभिकल्पी बनाने के लिए "= 0" इस्तेमाल किया जाता है।
5. क्या प्योर वर्चुअल फंक्शन का अभिलेख संभव है?
उत्तर: हां, प्योर वर्चुअल फंक्शन का अभिलेख संभव है। अभिलेखन के दौरान इसे एक अभिकल्पी फंक्शन के रूप में प्रदर्शित किया जाता है और उसे डेराइव्ड क्लास में ओवरराइड किया जा सकता है।
Related Searches

Sample Paper

,

MCQs

,

ppt

,

pdf

,

Viva Questions

,

video lectures

,

156. Characteristics of Pure Virtual Function in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

Free

,

Extra Questions

,

shortcuts and tricks

,

past year papers

,

156. Characteristics of Pure Virtual Function in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

Previous Year Questions with Solutions

,

study material

,

Objective type Questions

,

mock tests for examination

,

Exam

,

156. Characteristics of Pure Virtual Function in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

Important questions

,

practice quizzes

,

Semester Notes

,

Summary

;