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

Поділитися
Вставка
  • Опубліковано 13 гру 2024

КОМЕНТАРІ • 64

  • @NareshIT
    @NareshIT  5 років тому +4

    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 років тому +8

    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 роки тому +4

    Thank you very much. You are better than my oops&ds lecturer ❤️

  • @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

  • @venkatanagaeswarkousikneri462
    @venkatanagaeswarkousikneri462 6 років тому +2

    Sir
    Continue the videos.
    Videos are so clear and the crystal clarity

  • @sohailharoon9498
    @sohailharoon9498 7 років тому +1

    Finally ,i understood insertion and extraction operator in cpp,thanx sir.

  • @christinthomas8952
    @christinthomas8952 3 роки тому

    your class is ozm am really liking it

  • @atulsoam472
    @atulsoam472 3 роки тому +1

    Thankyou sir finally I got it

  • @mohdarbabkhan1031
    @mohdarbabkhan1031 2 роки тому

    Thanks for clearing my concept!!

  • @charoniv5631
    @charoniv5631 3 роки тому +1

    Thank you sir for the awesome video

  • @ryanleexuanhao
    @ryanleexuanhao 6 років тому +2

    Thank you sir! you explain it so clearly!!!!

  • @animeshjaiswal3878
    @animeshjaiswal3878 3 роки тому

    Very helpful video highly recommended 🤩🤩🤩

  • @ashishjangra7167
    @ashishjangra7167 2 роки тому

    Thanks a lot sir ☺️☺️

  • @zoobisoubisou9377
    @zoobisoubisou9377 7 років тому +1

    Thank you for this video, it was very helpful!

  • @Masskalauni
    @Masskalauni 3 роки тому

    You are Amazing Sir

  • @Arabic_guy2024
    @Arabic_guy2024 4 роки тому

    Thanks for such a good lecture

  • @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

  • @pankajverma3197
    @pankajverma3197 3 роки тому

    Good explanation

  • @senthilmurugan2066
    @senthilmurugan2066 5 років тому +1

    Thank you sir.....🙏🙏🙏

  • @sheharyaar6338
    @sheharyaar6338 5 років тому

    Very helping video keep it up

  • @kimron92
    @kimron92 7 років тому +4

    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 років тому +1

      I have also this same doubt so please sir reply as soon as possible

    • @creative_rvish
      @creative_rvish 6 років тому +1

      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 5 років тому +1

      @@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

  • @LOVE-ue7un
    @LOVE-ue7un 4 роки тому

    tqsm sir🙏🙏

  • @jayachandruduchakali3218
    @jayachandruduchakali3218 4 місяці тому

    thank you

  • @KPfVy2ma
    @KPfVy2ma 6 років тому

    exelent video thanks siir

  • @chukwuka-steveorefo1812
    @chukwuka-steveorefo1812 6 років тому +1

    @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 3 роки тому

      @@smarttube1141 but what about stu?? Why we are using reference type there?

  • @Unique_one_tour
    @Unique_one_tour 7 років тому

    Very nice

  • @darshanpatidar3155
    @darshanpatidar3155 4 роки тому

    Nice sir

  • @amitbisht3241
    @amitbisht3241 5 років тому

    Thank U sir

  • @viswanathgupta7406
    @viswanathgupta7406 7 років тому +2

    add function overloading sessions

  • @shahnawazshaikh4708
    @shahnawazshaikh4708 7 років тому +1

    How can we overload like:
    Cin››a››b;
    Where a and b are objects of particular same class

    • @maddupavan7193
      @maddupavan7193 4 роки тому +2

      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

  • @rajendraacharya8148
    @rajendraacharya8148 2 роки тому

    does the header file contain .h
    ?

  • @souvikghosh1285
    @souvikghosh1285 6 років тому

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

  • @rejetimeghavardhan7805
    @rejetimeghavardhan7805 4 роки тому

    For binary operator overload one implicit one explicit na

  • @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 роки тому +1

      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.

  • @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 3 роки тому

    Thank you sir🙏🙏

  • @MazharKhan-jm7pj
    @MazharKhan-jm7pj 4 роки тому

    Thanks Sir

  • @unknown-iu5un
    @unknown-iu5un 3 роки тому

    Thankyou sir

  • @laeight9652
    @laeight9652 Рік тому

    Thank you sir