Function Overloading And Overriding in C++

Sdílet
Vložit
  • čas přidán 7. 01. 2018
  • JOIN ME:
    CZcams 🎬 / @cppnuts
    Patreon 🚀 / cppnuts
    In this video we will see the difference between function overloading and function overriding in c++. So many people get confuse about this point, so let me know if you have any doubt in the comment section.
    #cpp #programming #tutorial #interviewquestions #computerscience #softwareengineering

Komentáře • 24

  • @shivanshsenpai8742
    @shivanshsenpai8742 Před 7 měsíci

    Hello sir, I am actually having my semester exams next week and I am really glad that I found your channel just at the right time, I have learned and improved on so many concepts and now I am pretty confident in myself, Thank you sir

  • @mike97112006
    @mike97112006 Před rokem

    Excellent explanation, very clear example, and covered even more details such as binding, inheritance, and polymorphism. Thank you for this 👍

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

    I'm learning a lot with this channel, I'm not profesional programmer, but I read a lot about C++, but you are clarifing me a lot of concepts I read... Thanks a lot...

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

    Hello Sir, Your teaching skill is too good, you touched all the point. Thank you so much.

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

      +Tyson, Thank you so much for such a nice comment.. :D

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

    thanks for this video....That's a great explanation........

    • @CppNuts
      @CppNuts  Před 6 lety

      +Srinivas KL you are welcome dude.

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

    Appreciate your efforts

    • @CppNuts
      @CppNuts  Před 6 lety

      +Dhawal Arora thanks man.. :)

  • @vvpChannel3112
    @vvpChannel3112 Před 2 lety

    Hi Sir, What is the reason why function overloading is not possible with return type?

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

    can you make a video how runtime ploymorphism works

    • @CppNuts
      @CppNuts  Před 4 lety

      Sure man i was also planning for this video.

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

    Well, at least you made it one video where I could understand what you were saying in the first 5-10 seconds of your video...

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

      +Tom B that's because you complained about it last time :)

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

      I will say one thing though--your videos make me want to go try the Sublime editor. It looks pretty cool!

    • @CppNuts
      @CppNuts  Před 6 lety

      +Tom B yes it is.

  • @KaramAbuGhalieh
    @KaramAbuGhalieh Před 2 lety

    Linkedin Question:
    Consider this function declaration of is_even, which takes in an integer and returns true if the argument is an even number and false otherwise. Which declarations are correct for overloaded versions of that function to support floating point numbers and string representations of numbers?
    A
    bool is_even(float f);
    bool is_even(char *str);
    B
    bool is_even(float f);
    bool is_even(char str);
    C
    bool is_even_float(float f);
    bool is_even_str(char *str);
    D
    float is_even(float f);
    char *is_even(char *str);

    • @CppNuts
      @CppNuts  Před 2 lety

      There is no even odd for floating numbers, may be he was looking for that answer.

    • @CppNuts
      @CppNuts  Před 2 lety

      And if he was serious about this question then there is an ambitious call when you have any float version what is mentioned in the question, but if you are ready to typecast number before calling float overload then it will work. And answer A is correct then.
      But as i mentioned there are so many questions to ask to interviewer to reach to this conclusion.

  • @Raam1827
    @Raam1827 Před rokem

    Which ide are you using?

    • @CppNuts
      @CppNuts  Před rokem

      sublime OR vscode

    • @Raam1827
      @Raam1827 Před rokem

      @@CppNuts thanks for your response... Are you teaching online c++ courses?

    • @CppNuts
      @CppNuts  Před rokem

      No, just upload videos.