Back-End Programming Exam  >  Back-End Programming Videos  >  Learn to Program with C++: Beginner to Expert (in Hindi)  >  90. Declaration of Constructor Inside and Outside Class in C++ Hindi

90. Declaration of Constructor Inside and Outside Class in C++ Hindi Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

186 videos

FAQs on 90. Declaration of Constructor Inside and Outside Class in C++ Hindi Video Lecture - Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

1. कॉन्स्ट्रक्टर को वर्ग के अंदर और बाहर घोषित करने की घोषणा कैसे की जाती है?
Ans. कॉन्स्ट्रक्टर की घोषणा वर्ग के अंदर और बाहर दोनों तरीकों से की जा सकती है। वर्ग के अंदर घोषित करने के लिए, वर्ग नाम के साथ कॉन्स्ट्रक्टर का नाम दिया जाता है, जबकि वर्ग के बाहर घोषित करने के लिए वर्ग नाम के बाद कॉन्स्ट्रक्टर का नाम दिया जाता है।
2. कॉन्स्ट्रक्टर के इनिशियलाइजर सूची का उपयोग क्यों किया जाता है?
Ans. कॉन्स्ट्रक्टर के इनिशियलाइजर सूची का उपयोग करके हम वस्त्रित पैरामीटर मानों को इनिशियलाइज कर सकते हैं। इसका उपयोग वे पैरामीटर के लिए किया जाता है जिन्हें अनुक्रमणिका सूची में पास किया जा सकता है, जिन्हें कॉन्स्ट्रक्टर के शरीर में उपयोग किया जाना है।
3. कॉन्स्ट्रक्टर के इनिशियलाइजर सूची को कैसे लिखा जाता है?
Ans. कॉन्स्ट्रक्टर के इनिशियलाइजर सूची को कॉन्स्ट्रक्टर शरीर के बाद एक इनिशियलाइजर सूची ब्लॉक में लिखा जाता है। यह ब्लॉक आवश्यकतानुसार वीभिन्न पैरामीटर और उनके मानों को इनिशियलाइज करने के लिए उपयोग किया जाता है।
4. क्या हम एक संदर्भ के रूप में कॉन्स्ट्रक्टर का उपयोग कर सकते हैं?
Ans. हां, हम एक संदर्भ के रूप में कॉन्स्ट्रक्टर का उपयोग कर सकते हैं। एक संदर्भ द्वारा, हम एक वस्त्रित वस्तु के लिए नया ऑब्जेक्ट बना सकते हैं और उसे उस वस्तु के विशेष मानों के साथ इनिशियलाइज कर सकते हैं।
5. क्या एक वर्ग में एक से अधिक कॉन्स्ट्रक्टर हो सकते हैं?
Ans. हां, एक वर्ग में एक से अधिक कॉन्स्ट्रक्टर हो सकते हैं। यह ओवरलोडिंग के रूप में जाना जाता है, जहां परिवर्तनशीलता और उपयोगिता के लक्ष्य से विभिन्न पैरामीटर और उनके मानों को इनिशियलाइज करने के लिए अलग-अलग कॉन्स्ट्रक्टर घोषित किए जा सकते हैं।
186 videos
Explore Courses for Back-End Programming exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Free

,

Semester Notes

,

study material

,

ppt

,

mock tests for examination

,

shortcuts and tricks

,

pdf

,

Exam

,

Previous Year Questions with Solutions

,

Sample Paper

,

90. Declaration of Constructor Inside and Outside Class in C++ Hindi Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

practice quizzes

,

video lectures

,

Objective type Questions

,

Summary

,

90. Declaration of Constructor Inside and Outside Class in C++ Hindi Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

Extra Questions

,

past year papers

,

Viva Questions

,

Important questions

,

90. Declaration of Constructor Inside and Outside Class in C++ Hindi Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

MCQs

;