Ø Binary Operator overloading performed on objects for eg. Addition of two objects data members. बाइनरी ऑपरेटर ओवरलोडिंग को ऑब्जेक्ट के उपर कार्य करने के लिए उपयोग किया जाता है। जैसे दो ऑब्जेक्ट के डाटा मैम्बरर्स को जोडना
Hello! To continue reading aasansolution.in, please disable your AdBlocker or Brave Shield.
Allowing ads helps us keep our customized Tally TDLs and tools completely free for everyone.
Ø Binary Operator overloading performed on objects for eg. Addition of two objects data members. बाइनरी ऑपरेटर ओवरलोडिंग को ऑब्जेक्ट के उपर कार्य करने के लिए उपयोग किया जाता है। जैसे दो ऑब्जेक्ट के डाटा मैम्बरर्स को जोडना
Q. 5. Why do we need to use constructor ? explain with suitable examples.
Q. 4. What is a friend function in OOP? write a program in C++ to swap value of two different classes using the friend function?
Sol.