AdBlocker Detected!

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.

I have whitelisted it - Refresh Page
AS

Question. Demonstrate any one binary operator overloading in c++ with suitable example.. C++ में बाइनरी ऑपरेटर ओवरलोडिंग को उदाहरण के साथ दर्शाइयें।


Ø 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. 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?


 

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. 

OOps Programming with C++ and JAVA , VMOU June-2021 Question 1


(i)Differentiate Exception and error?

Fast Index