Back-End Programming Exam  >  Back-End Programming Videos  >  Learn to Program with C++: Beginner to Expert (in Hindi)  >  73. Introduction to Friend Function in C++ (Hindi)

73. Introduction to Friend Function in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

186 videos

FAQs on 73. Introduction to Friend Function in C++ (Hindi) Video Lecture - Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

1. Friend function क्या होता है?
उत्तर: Friend function एक C++ की विशेषता है जो एक क्लास के एक्सेस को दूसरे क्लास को प्रदान करती है। इसका उपयोग क्लास के दोस्त फंक्शन को दोस्त क्लास के मेम्बर्स तक पहुंचने के लिए किया जाता है।
2. Friend function क्यों उपयोगी होता है?
उत्तर: Friend function का उपयोग क्लास के प्राइवेट और प्रोटेक्टेड मेम्बर्स तक पहुंचने के लिए किया जाता है जो कि क्लास के बाहर से उपयोगी हो सकता है। यह क्लास के एक्सेसिंग डेटा को सुरक्षित और तंत्रिका बनाने में मदद करता है।
3. Friend function कैसे बनाया जाता है?
उत्तर: Friend function को क्लास के बाहर बनाए जाते हैं लेकिन इसे क्लास के अंदर दोस्त क्लास के रूप में घोषित किया जाता है। फ्रेंडशिप डिक्लेरेशन का उपयोग करके उसे बनाया जाता है, जैसे "friend void myFunction();"।
4. Friend function क्या क्लास के सभी मेम्बर्स तक पहुंच सकता है?
उत्तर: हाँ, Friend function क्लास के सभी मेम्बर्स तक पहुंच सकता है। यह क्लास के प्राइवेट, प्रोटेक्टेड और पब्लिक मेम्बर्स तक पहुंचने की अनुमति देता है।
5. क्या एक क्लास में कई Friend functions हो सकते हैं?
उत्तर: हाँ, एक क्लास में कई Friend functions हो सकते हैं। किसी भी क्लास में एक से अधिक Friend functions घोषित की जा सकती हैं, जो कि दोस्त क्लास के मेम्बर्स तक पहुंचने के लिए उपयोगी हो सकते हैं।
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

73. Introduction to Friend Function in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

video lectures

,

Viva Questions

,

pdf

,

73. Introduction to Friend Function in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

Sample Paper

,

Exam

,

past year papers

,

ppt

,

Extra Questions

,

Summary

,

73. Introduction to Friend Function in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

Important questions

,

study material

,

practice quizzes

,

Objective type Questions

,

Previous Year Questions with Solutions

,

Free

,

Semester Notes

,

mock tests for examination

,

MCQs

,

shortcuts and tricks

;