Overloading Insertion and Extraction Operator in C++ | C++ Tutorial | Mr. Kishore
Vložit
- čas přidán 20. 04. 2017
- C ++ Tutorial Videos | Mr. Kishore
** For Online Training Registration: goo.gl/r6kJbB ► Call: +91-8179191999
💡 Also Watch
C Language Tutorials: goo.gl/qDhJ2r
Core Java FAQ's: goo.gl/qGh5mA
Core Java Tutorials: goo.gl/NbaEge
Java Programming Tutorials by Mr.Hari krishna:
goo.gl/HThq6H
Advanced Java Programming Tutorials by Mr.Nataraj:
goo.gl/1U2Qgy
Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.
💡 Visit Our Websites
For Classroom Training: nareshit.in/cpp-training/
For Online Training: nareshit.com/c-online-training/
#JavaCollectionsFramework #Tutorials #Videos #corejava #Quiz #Clanguage
--------------------------
💡 About NareshIT:
"Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA , Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA, Hyderabad, Chennai and Vijayawada, Bangalore India which provides online training across all the locations
--------------------------
💡 Our Online Training Features:
🎈 Training with Real-Time Experts
🎈 Industry Specific Scenario’s
🎈 Flexible Timings
🎈 Soft Copy of Material
🎈 Share Videos of each and every session.
--------------------------
💡 Please write back to us at
📧 us.training@nareshit.com/ 📧 online@nareshit.com or Call us at the USA: ☎+1404-232-9879 or India: ☎ +918179191999
--------------------------
💡 Check The Below Links
► For Course Reg: goo.gl/r6kJbB
► Subscribe to Our Channel: goo.gl/q9ozyG
► Circle us on G+: plus.google.com/+NareshIT
► Like us on Facebook: / nareshit
► Follow us on Twitter: / nareshitek
► Follow us on Linkedin: goo.gl/CRBZ5F
► Follow us on Instagram: goo.gl/3UXYK3
Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL
Thank you so much sir, aap ne ek baar mai samjha dia, i was struggling from 2 days for the same concept.
Finally ,i understood insertion and extraction operator in cpp,thanx sir.
Sir
Continue the videos.
Videos are so clear and the crystal clarity
Thank you very much. You are better than my oops&ds lecturer ❤️
Thank you sir! you explain it so clearly!!!!
Thank you for this video, it was very helpful!
this is the best video about this topic in entire the whole internet !!!
From PAKISTAN u explained very well sir
Very helpful video highly recommended 🤩🤩🤩
sir like your explanation nothing great i from the deep of heart thankyou for your free and much much valued explanation. sir you are unknowingly helping lot of students .lord will give you a great gift for this #noowords#salutetokishoresir
Thanks for clearing my concept!!
your class is ozm am really liking it
Thanks for such a good lecture
Thank you sir for the awesome video
Thankyou sir finally I got it
Thank you sir.....🙏🙏🙏
You are Amazing Sir
Very helping video keep it up
@Naresh i Technologies
Hello Mr. Kishore,
I can I ask why you have declared and defined the friend function inside the class this time around?
Also why have you used &in, &out and &stu in your functions this time but not before? what is the rule/ theory behind using ampersand?
Because for istream and ostream class there is no this pointer implicitly so it is not work without reference type. If you want to see this go to shallow copy and deep concepts then u able to know
@@smarttube1141 but what about stu?? Why we are using reference type there?
exelent video thanks siir
add function overloading sessions
Thanks a lot sir ☺️☺️
Good explanation
Thank you sir🙏🙏
Good Explain Sir
Thank you sir
Very nice
Thank U sir
tqsm sir🙏🙏
can we perform this program without using reference variable means can we make normal objects of istream and ostream
adarsh verma there is no need to do that. You can, I suppose, but that simply allocated more memory for an object that has been predefined. All you need to do is send the cout object and use a reference to access the functionality of it.
The main purpose of using reference is to minimise memory
I have seen that in place of return type as void, which you have used, some people use return type as istream& and ostream& and then return in and out respectively in the end of overloading functions. How is that different?
Rohan Kimothi same doubt
I have also this same doubt so please sir reply as soon as possible
When we are using cin>>obj1>>obj2>>obj3;
Then we must return with&. because obj1 get scanned with cin but for obj2 to get scan with cin it is needed to return
@@creative_rvish the difference is simple, let us say there is a add function which add two numbers, it is like printing sum of two numbers within that add function (in case of void return) or returning the sum to an outside variable and printing it(in case of int/float return).......so with void we print the objects in operator function itself and with returning we return the stream of objects and print outside
because of >> operator is belongs to istream and > and
How can we overload like:
Cin››a››b;
Where a and b are objects of particular same class
to achieve this cin>>a>>b your operator overloading function should return cin and return type must be istream&
does the header file contain .h
?
How are you using without returning the objects in and out ?
here we are reading the data from in and showing the data by out.....
This program gives error! Friend operator can't be defined inside the class
Nice sir
kaiya gam no he tu
can we define friend fun inside the class?
No we can't define inside the class. friend function is declared inside the class and defined outside the class always.
yes in case of operator overloading it can be inside or outside of the class....
@@amitkumargupta6722 No! U r incorrect!
@@ashutoshsingh7713 he is correct , in case of operator overloading we can define friend function inside or outside the class
@@sharath5796 ohhh nice info thanks yar :) new to me.
For binary operator overload one implicit one explicit na
You are saying both expliciy
You are saying both explivit
@@rejetimeghavardhan7805 both explict
English bolna zarori hai hai kya????
Thanks Sir
Thankyou sir