Overloading Insertion and Extraction Operator in C++ | C++ Tutorial | Mr. Kishore

  Рет қаралды 69,137

Naresh i Technologies

Naresh i Technologies

Күн бұрын

Пікірлер: 64
@NareshIT
@NareshIT 5 жыл бұрын
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
@prafulkatare4385
@prafulkatare4385 5 жыл бұрын
Thank you so much sir, aap ne ek baar mai samjha dia, i was struggling from 2 days for the same concept.
@vinithp4325
@vinithp4325 3 жыл бұрын
Thank you very much. You are better than my oops&ds lecturer ❤️
@venkatanagaeswarkousikneri462
@venkatanagaeswarkousikneri462 6 жыл бұрын
Sir Continue the videos. Videos are so clear and the crystal clarity
@sohailharoon9498
@sohailharoon9498 7 жыл бұрын
Finally ,i understood insertion and extraction operator in cpp,thanx sir.
@SkSafowan
@SkSafowan 3 жыл бұрын
this is the best video about this topic in entire the whole internet !!!
@saribnoor2105
@saribnoor2105 Жыл бұрын
From PAKISTAN u explained very well sir
@christinthomas8952
@christinthomas8952 3 жыл бұрын
your class is ozm am really liking it
@ryanleexuanhao
@ryanleexuanhao 7 жыл бұрын
Thank you sir! you explain it so clearly!!!!
@chaitanyanaik5944
@chaitanyanaik5944 4 жыл бұрын
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
@animeshjaiswal3878
@animeshjaiswal3878 4 жыл бұрын
Very helpful video highly recommended 🤩🤩🤩
@atulsoam472
@atulsoam472 3 жыл бұрын
Thankyou sir finally I got it
@mohdarbabkhan1031
@mohdarbabkhan1031 2 жыл бұрын
Thanks for clearing my concept!!
@charoniv5631
@charoniv5631 3 жыл бұрын
Thank you sir for the awesome video
@zoobisoubisou9377
@zoobisoubisou9377 7 жыл бұрын
Thank you for this video, it was very helpful!
@Arabic_guy2024
@Arabic_guy2024 4 жыл бұрын
Thanks for such a good lecture
@ashishjangra7167
@ashishjangra7167 3 жыл бұрын
Thanks a lot sir ☺️☺️
@Masskalauni
@Masskalauni 3 жыл бұрын
You are Amazing Sir
@pankajverma3197
@pankajverma3197 3 жыл бұрын
Good explanation
@senthilmurugan2066
@senthilmurugan2066 5 жыл бұрын
Thank you sir.....🙏🙏🙏
@sheharyaar6338
@sheharyaar6338 5 жыл бұрын
Very helping video keep it up
@kimron92
@kimron92 7 жыл бұрын
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?
@anant3877
@anant3877 7 жыл бұрын
Rohan Kimothi same doubt
@preyas2198
@preyas2198 6 жыл бұрын
I have also this same doubt so please sir reply as soon as possible
@creative_rvish
@creative_rvish 6 жыл бұрын
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
@GajamJayaprasad
@GajamJayaprasad 6 жыл бұрын
@@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
@amitkumargupta6722
@amitkumargupta6722 4 жыл бұрын
because of >> operator is belongs to istream and > and
@chukwuka-steveorefo1812
@chukwuka-steveorefo1812 6 жыл бұрын
@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?
@smarttube1141
@smarttube1141 6 жыл бұрын
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
@arunlabana5937
@arunlabana5937 4 жыл бұрын
@@smarttube1141 but what about stu?? Why we are using reference type there?
@LOVE-ue7un
@LOVE-ue7un 4 жыл бұрын
tqsm sir🙏🙏
@KPfVy2ma
@KPfVy2ma 6 жыл бұрын
exelent video thanks siir
@jayachandruduchakali3218
@jayachandruduchakali3218 6 ай бұрын
thank you
@shahnawazshaikh4708
@shahnawazshaikh4708 7 жыл бұрын
How can we overload like: Cin››a››b; Where a and b are objects of particular same class
@maddupavan7193
@maddupavan7193 4 жыл бұрын
to achieve this cin>>a>>b your operator overloading function should return cin and return type must be istream&
@adarshverma3372
@adarshverma3372 5 жыл бұрын
can we perform this program without using reference variable means can we make normal objects of istream and ostream
@KingUnity22
@KingUnity22 5 жыл бұрын
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.
@charoniv5631
@charoniv5631 3 жыл бұрын
The main purpose of using reference is to minimise memory
@darshanpatidar3155
@darshanpatidar3155 4 жыл бұрын
Nice sir
@259_parthpatidar9
@259_parthpatidar9 4 жыл бұрын
kaiya gam no he tu
@Unique_one_tour
@Unique_one_tour 7 жыл бұрын
Very nice
@amitbisht3241
@amitbisht3241 5 жыл бұрын
Thank U sir
@viswanathgupta7406
@viswanathgupta7406 7 жыл бұрын
add function overloading sessions
@vandanagupta551
@vandanagupta551 7 жыл бұрын
can we define friend fun inside the class?
@deepakborah8335
@deepakborah8335 7 жыл бұрын
No we can't define inside the class. friend function is declared inside the class and defined outside the class always.
@amitkumargupta6722
@amitkumargupta6722 4 жыл бұрын
yes in case of operator overloading it can be inside or outside of the class....
@ashutoshsingh7713
@ashutoshsingh7713 4 жыл бұрын
@@amitkumargupta6722 No! U r incorrect!
@sharath5796
@sharath5796 3 жыл бұрын
@@ashutoshsingh7713 he is correct , in case of operator overloading we can define friend function inside or outside the class
@ashutoshsingh7713
@ashutoshsingh7713 3 жыл бұрын
@@sharath5796 ohhh nice info thanks yar :) new to me.
@souvikghosh1285
@souvikghosh1285 7 жыл бұрын
How are you using without returning the objects in and out ?
@amitkumargupta6722
@amitkumargupta6722 4 жыл бұрын
here we are reading the data from in and showing the data by out.....
@rajendraacharya8148
@rajendraacharya8148 2 жыл бұрын
does the header file contain .h ?
@rejetimeghavardhan7805
@rejetimeghavardhan7805 4 жыл бұрын
For binary operator overload one implicit one explicit na
@rejetimeghavardhan7805
@rejetimeghavardhan7805 4 жыл бұрын
You are saying both expliciy
@rejetimeghavardhan7805
@rejetimeghavardhan7805 4 жыл бұрын
You are saying both explivit
@259_parthpatidar9
@259_parthpatidar9 4 жыл бұрын
@@rejetimeghavardhan7805 both explict
@ashutoshsingh7713
@ashutoshsingh7713 4 жыл бұрын
This program gives error! Friend operator can't be defined inside the class
@tahirnawaz9821
@tahirnawaz9821 3 жыл бұрын
English bolna zarori hai hai kya????
@nitindhamale8789
@nitindhamale8789 3 жыл бұрын
Good Explain Sir
@entrozone9680
@entrozone9680 4 жыл бұрын
Thank you sir🙏🙏
@MazharKhan-jm7pj
@MazharKhan-jm7pj 4 жыл бұрын
Thanks Sir
@unknown-iu5un
@unknown-iu5un 3 жыл бұрын
Thankyou sir
@laeight9652
@laeight9652 2 жыл бұрын
Thank you sir
Introduction to Inheritance in C++ Part 1 | C++ Tutorial | Mr. Kishore
9:33
Naresh i Technologies
Рет қаралды 123 М.
Operator Overloading in C++ Example 1 | C++ Tutorial | Mr. Kishore
31:48
Naresh i Technologies
Рет қаралды 229 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Operator Overloading using Friend in C++ | C++ Tutorial | Mr. Kishore
15:46
Naresh i Technologies
Рет қаралды 79 М.
Copy Constructor in C++ | C++ Tutorial | Mr. Kishore
14:13
Naresh i Technologies
Рет қаралды 158 М.
Operator Overloading in C++ Example 2 | C++ Tutorial | Mr. Kishore
16:37
Naresh i Technologies
Рет қаралды 91 М.
Constant Members in Class | C++ Tutorial | Mr. Kishore
20:04
Naresh i Technologies
Рет қаралды 55 М.
Multiple Inheritance in C++ | C++ Tutorial | Mr. Kishore
18:18
Naresh i Technologies
Рет қаралды 76 М.