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

Sdílet
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

Komentáře • 63

  • @NareshIT
    @NareshIT  Před 5 lety +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 Před 4 lety +7

    Thank you so much sir, aap ne ek baar mai samjha dia, i was struggling from 2 days for the same concept.

  • @sohailharoon9498
    @sohailharoon9498 Před 6 lety +1

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

  • @venkatanagaeswarkousikneri462

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

  • @vinithp4325
    @vinithp4325 Před 3 lety +3

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

  • @ryanleexuanhao
    @ryanleexuanhao Před 6 lety +2

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

  • @zoobisoubisou9377
    @zoobisoubisou9377 Před 6 lety +1

    Thank you for this video, it was very helpful!

  • @SkSafowan
    @SkSafowan Před 2 lety

    this is the best video about this topic in entire the whole internet !!!

  • @saribnoor2105
    @saribnoor2105 Před rokem

    From PAKISTAN u explained very well sir

  • @animeshjaiswal3878
    @animeshjaiswal3878 Před 3 lety

    Very helpful video highly recommended 🤩🤩🤩

  • @chaitanyanaik5944
    @chaitanyanaik5944 Před 3 lety

    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

  • @mohdarbabkhan1031
    @mohdarbabkhan1031 Před rokem

    Thanks for clearing my concept!!

  • @christinthomas8952
    @christinthomas8952 Před 3 lety

    your class is ozm am really liking it

  • @Arabic_guy2024
    @Arabic_guy2024 Před 3 lety

    Thanks for such a good lecture

  • @charoniv5631
    @charoniv5631 Před 2 lety +1

    Thank you sir for the awesome video

  • @atulsoam472
    @atulsoam472 Před 2 lety +1

    Thankyou sir finally I got it

  • @senthilmurugan2066
    @senthilmurugan2066 Před 5 lety +1

    Thank you sir.....🙏🙏🙏

  • @Masskalauni
    @Masskalauni Před 2 lety

    You are Amazing Sir

  • @sheharyaar6338
    @sheharyaar6338 Před 5 lety

    Very helping video keep it up

  • @chukwuka-steveorefo1812
    @chukwuka-steveorefo1812 Před 6 lety +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 Před 6 lety

      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 Před 3 lety

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

  • @KPfVy2ma
    @KPfVy2ma Před 5 lety

    exelent video thanks siir

  • @viswanathgupta7406
    @viswanathgupta7406 Před 7 lety +2

    add function overloading sessions

  • @ashishjangra7167
    @ashishjangra7167 Před 2 lety

    Thanks a lot sir ☺️☺️

  • @pankajverma3197
    @pankajverma3197 Před 3 lety

    Good explanation

  • @entrozone9680
    @entrozone9680 Před 3 lety

    Thank you sir🙏🙏

  • @nitindhamale8789
    @nitindhamale8789 Před 2 lety

    Good Explain Sir

  • @laeight9652
    @laeight9652 Před rokem

    Thank you sir

  • @unique_finally
    @unique_finally Před 6 lety

    Very nice

  • @amitbisht3241
    @amitbisht3241 Před 5 lety

    Thank U sir

  • @LOVE-ue7un
    @LOVE-ue7un Před 3 lety

    tqsm sir🙏🙏

  • @adarshverma3372
    @adarshverma3372 Před 5 lety

    can we perform this program without using reference variable means can we make normal objects of istream and ostream

    • @KingUnity22
      @KingUnity22 Před 4 lety

      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 Před 2 lety

      The main purpose of using reference is to minimise memory

  • @rohankimothi9746
    @rohankimothi9746 Před 6 lety +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 Před 6 lety

      Rohan Kimothi same doubt

    • @preyas2198
      @preyas2198 Před 6 lety +1

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

    • @creative_rvish
      @creative_rvish Před 5 lety +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 Před 5 lety +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 Před 4 lety

      because of >> operator is belongs to istream and > and

  • @shahnawazshaikh4708
    @shahnawazshaikh4708 Před 6 lety +1

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

    • @maddupavan7193
      @maddupavan7193 Před 4 lety +2

      to achieve this cin>>a>>b your operator overloading function should return cin and return type must be istream&

  • @rajendraacharya8148
    @rajendraacharya8148 Před 2 lety

    does the header file contain .h
    ?

  • @souvikghosh1285
    @souvikghosh1285 Před 6 lety

    How are you using without returning the objects in and out ?

    • @amitkumargupta6722
      @amitkumargupta6722 Před 4 lety

      here we are reading the data from in and showing the data by out.....

  • @ashutoshsingh7713
    @ashutoshsingh7713 Před 3 lety

    This program gives error! Friend operator can't be defined inside the class

  • @darshanpatidar3155
    @darshanpatidar3155 Před 4 lety

    Nice sir

  • @vandanagupta551
    @vandanagupta551 Před 7 lety

    can we define friend fun inside the class?

    • @deepakborah8335
      @deepakborah8335 Před 7 lety

      No we can't define inside the class. friend function is declared inside the class and defined outside the class always.

    • @amitkumargupta6722
      @amitkumargupta6722 Před 4 lety +1

      yes in case of operator overloading it can be inside or outside of the class....

    • @ashutoshsingh7713
      @ashutoshsingh7713 Před 3 lety

      @@amitkumargupta6722 No! U r incorrect!

    • @sharath5796
      @sharath5796 Před 3 lety

      @@ashutoshsingh7713 he is correct , in case of operator overloading we can define friend function inside or outside the class

    • @ashutoshsingh7713
      @ashutoshsingh7713 Před 3 lety

      @@sharath5796 ohhh nice info thanks yar :) new to me.

  • @rejetimeghavardhan7805

    For binary operator overload one implicit one explicit na

  • @tahirnawaz9821
    @tahirnawaz9821 Před 3 lety

    English bolna zarori hai hai kya????

  • @MazharKhan-jm7pj
    @MazharKhan-jm7pj Před 3 lety

    Thanks Sir

  • @unknown-iu5un
    @unknown-iu5un Před 2 lety

    Thankyou sir