UNARY OPERATOR OVERLOADING IN C++ ( UNARY OPERATOR OVERLOADING EXPLAINED) - 27

Sdílet
Vložit
  • čas přidán 10. 02. 2017
  • UNARY OPERATOR OVERLOADING
    In this video we will learn about Unary Operator Overloading in C++.
    We will fist see what are unary operators?
    Why we use unary operator overloading?
    A program is explained to clear all doubts about Unary
    Operator Overloading.
    Mail:Anipriguy@gmail.com
    Music:
    Ukulele by BENSOUND www.bensound.com/royalty-free-...
    Creative Commons - Attribution 3.0 Unported- CC BY 3.0
    creativecommons.org/licenses/b...
    Music provided by Audio Library • Video
    ------------------------------------------------------------------------------------------------
    Suggested Videos
    Function Overloading (FUNCTION IN C++ - PART 4) :- • Function Overloading (...
    Void or Generic Pointer in c++ :- • Void or Generic Pointe...
    Variables and Data Types in C++ :- • Variables and Data Typ...
    Data Type Range in C++ :- • Data Type Range in C++...
    Comments in C++:- • Comments in C++ -7
    Inline Function - FUNCTION IN C++ (PART - 3) :- • Inline Function - FUNC...
    Function Overloading (FUNCTION IN C++ - PART 4)
    • Function Overloading (...
    Class and Objects(part-3)[VISIBILITY MODES IN C++] :- • Class and Objects(part...
    Class and Objects[Most Important Video] Part-5 (Complex Number Program)
    • Class and Objects[Most...
    STATIC FUNCTIONS IN C++ :- • STATIC FUNCTIONS IN C+...
    CONSTRUCTOR IN C++ ( SYNTAX AND PROGRAM AND ALL POSSIBLE ERRORS)
    • CONSTRUCTOR IN C++ ( S...
    STATIC VARIABLE OR STATIC DATA MEMBER IN C++ :- • STATIC VARIABLE OR STA...
    Constructor Overloading in C++- 32 :- • Constructor Overloadin...

Komentáře • 133

  • @paridhimodi2450
    @paridhimodi2450 Před 6 lety +10

    best videos of youtube that can clear concepts of c++

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

      Thanks a lot Paridhi :-)
      This is one of the best comment I had ever received
      Keep on watching and don't forget to help me by sharing my Channel and Videos

  • @inessa9314
    @inessa9314 Před 5 lety +8

    OMG THANK YOU FOR YOUR VIDEOS!!!!!!!! THIS IS EXACTLY WHAT I NEED IN MY LIFE!!!

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

    i ended up smiling like that kitten at the end of the video. thank u so much. very well explained

  • @sujataraulgaonkar9038

    SUPERB PRESENTATION, GREAT WORK !!!!!!! THANK YO SO MUCH

  • @jigyasatrivedi7509
    @jigyasatrivedi7509 Před 6 lety +9

    love your style ....!! what an idea sir ji ....!! thank u sir or ma'am who ever u r i don't i was just looking for operator overloading ... i found your video... this video deserves 15,431 likes(because the video has 15,431 views)....

  • @zeelthumar
    @zeelthumar Před 3 lety

    u are the best teacher i have ever seen.

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

    These videos are a God send to me. At the eleventh hour. On the day before my exam. Keep up the good work 😊

  • @ykchannel2791
    @ykchannel2791 Před rokem

    Good work. You are brilliant!

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

    It's really easy to understand books after getting concept from your video-thank you

  • @fardaddanish8113
    @fardaddanish8113 Před 4 lety

    wonderfull man .....thanks for doing this for us ......do continue more for us ...i shall be very thankful to you for this act of kindness

  • @DA-gs2rl
    @DA-gs2rl Před 6 lety

    Great explanation! Thank you very much!

  • @kritangnasingh5934
    @kritangnasingh5934 Před 6 lety +21

    Programming is fun if it is done your way!

  • @singiri697
    @singiri697 Před 4 lety

    I think u be d best of all who teaches coding!

  • @vidhioswal9188
    @vidhioswal9188 Před 3 lety

    Thank you for the amazing exolaination!

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

    I never thought an animated video can help teach me a concept better than someone speed coding on a compiler opened in from of me. I stand corrected. 👍

  • @sudeepnt1647
    @sudeepnt1647 Před 3 lety

    Your vedio deserve not just like dude..... Love you❤🤟 man

  • @sunitamahawar1577
    @sunitamahawar1577 Před 2 lety

    This is very helpful and concept clear in mind 👌👌👌

  • @haochuanzhang3696
    @haochuanzhang3696 Před 5 lety

    thank you so much it helps me a lot. compare to the thing on the common website ur video makes it pretty easy to understand.

  • @user-ny5by2ot1k
    @user-ny5by2ot1k Před 4 lety

    I appreciate what you are doing bro. Keep it up.

  • @sunitamahawar1577
    @sunitamahawar1577 Před 2 lety

    Every concept is clearly explained 😍😍

  • @pratikjadhav7513
    @pratikjadhav7513 Před 6 lety

    You explain real cool by animation.. loved it

  • @viraj8069
    @viraj8069 Před 6 lety

    Dam you got the best videos to make others understnad concept

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

    I was reading this topic for 3 hours to understand unfortunately I confused but by watching this 8minutes i am enough satisfied with what I watched thank you dear 💕

  • @VishalKumar-ix2rk
    @VishalKumar-ix2rk Před 5 lety

    Bro manna pare ga aap ko..
    Really awesome

  • @Luna-fu7ix
    @Luna-fu7ix Před 6 lety +1

    Who can DISLIKE this awesome Video???!!!!!

  • @jp-gw7im
    @jp-gw7im Před 6 lety

    woww very nice this lecture see no need join any choching centre thanks sir

  • @bahar5517
    @bahar5517 Před 2 lety

    a literal life saver my mind brighted

  • @touqeeryousaf9520
    @touqeeryousaf9520 Před 5 lety

    Really wonderful way to teach

  • @tradertrader2520
    @tradertrader2520 Před 2 lety

    While(1)
    {Concept + background music = awesome }

  • @succulentgardenermumbai

    Thanks for making such a useful channel

  • @moabi6154
    @moabi6154 Před 5 lety

    Job well done👏

  • @Farahat1234
    @Farahat1234 Před 5 lety

    Thank you yr. Please upload all videos of every topic. Please🙏🙇. Because you clear every concept nd your explanation us awsome😍

  • @zarrishzia613
    @zarrishzia613 Před 3 lety

    2× saved time and the video was great 😊

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

    Best yt channel for programming tutorial
    Thankqq sir

    • @Codearchery
      @Codearchery  Před 6 lety

      Thank u so much Pankaj
      Have you seen Codearchery.com teaser?
      czcams.com/video/cqLdlBaohLU/video.html
      Did you like it ?

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

    The Best!!!!

  • @shynakaur4758
    @shynakaur4758 Před 6 lety

    thanku so much sir...its easy to understand

  • @hifzakhalid7367
    @hifzakhalid7367 Před rokem

    Great❤

  • @AmeerHamza-iz4ze
    @AmeerHamza-iz4ze Před 6 lety

    creative work
    awesome

  • @tejasitaliya8612
    @tejasitaliya8612 Před 5 lety

    Thank you so much

  • @abrarbaltii
    @abrarbaltii Před 4 lety

    Just perfect

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

    Great video sir. One of my favourite youtube channel. Its an best way to clear concepts.....Tysm....😊😊

    • @Codearchery
      @Codearchery  Před 6 lety

      Thank u so much Ankit , loved your comment
      I hope You'll like to Help this channel by sharing it with your friends
      Keep on watching and Keep on Learning Cool stuff :-)

  • @abdulrabazfar8852
    @abdulrabazfar8852 Před 3 lety

    Brilliant

  • @nagari_ishere
    @nagari_ishere Před 5 lety

    love and respect

  • @SKVINES1
    @SKVINES1 Před 6 lety

    love it

  • @tioss6687
    @tioss6687 Před 3 lety

    thank you boss

  • @peymanbr
    @peymanbr Před 5 lety +2

    In the example code, better to rename the getdata() to setdata(). Great video overall.

  • @samerorfali5026
    @samerorfali5026 Před 6 lety

    best youtube chanel ever

    • @Codearchery
      @Codearchery  Před 6 lety

      Thanks samer
      Have you seen Codearchery.com teaser?
      czcams.com/video/cqLdlBaohLU/video.html
      Did you like it ?

  • @priyaangel3486
    @priyaangel3486 Před 3 lety

    so nice

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

    well explained...thank you....

  • @sunsetpost4931
    @sunsetpost4931 Před 5 dny

    no mouth filling just brilliant

  • @user-tz8op5sl1n
    @user-tz8op5sl1n Před 6 lety +1

    Thank you sir

  • @nadeemsukhera8476
    @nadeemsukhera8476 Před 6 lety

    thanks alot

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

    Really very helpful.....well explained.

    • @Codearchery
      @Codearchery  Před 6 lety

      Thanks d :-)
      Thanks for watching this video and for appreciating My Work

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

    thnq u very much ....u were d best ...

    • @Codearchery
      @Codearchery  Před 6 lety

      Thanks a lot Harsha
      Don't forget to share

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

    Great job broher.keep it up
    and i want to know how do we add values of objects and put into another object

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

    Great job sir..!!!

    • @Codearchery
      @Codearchery  Před 6 lety

      Thanks Jeel for Watching My Videos and for Appreciating My Work
      I hope you'll like to help me jeel by sharing my channel and videos with your friends and on social media
      Keep on Watching and Thanks for ur support :-)

  • @sowmya5661
    @sowmya5661 Před 7 lety +11

    One of the best CZcams channel 🙂👏🙏

    • @Codearchery
      @Codearchery  Před 7 lety +1

      Thanks a lot bm sowmya for such a great comment.
      Keep on Watching and Share this channel with your friends too :-)
      If you or any of your friends got stuck somewhere while learning , I am available at Aniproguy@gmail.com or you can Comment on any of my video :-)

    • @user-tz8op5sl1n
      @user-tz8op5sl1n Před 6 lety

      Sir,
      Please include programming video also.

  • @vivekdevkar4941
    @vivekdevkar4941 Před 4 lety

    Hey.
    You explained it very well, I liked it.
    But I have a request.
    Please zoom out and show all the content (All those writings) you explained in the video.
    So we could read that and shall be able to overview what things you explained in the video.
    Please Sir.
    🙂

  • @hassanahmedeid490
    @hassanahmedeid490 Před 5 lety +5

    If you are watching for exam as I am doing now... Like me 😀

  • @jeremyhartman4527
    @jeremyhartman4527 Před 4 měsíci

    only critic is that typically accessor and mutator class member functions are called getters and setters respectively. There is ambiguity in declaring member functions getData (which acts a setter/mutator function in your video) and member function display (which acts as a getter/accessor function in your video). I was able to understand this, but may be difficult for other people.

  • @user-jv3sb4pz8o
    @user-jv3sb4pz8o Před rokem

    W👑

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

    i love it.. thank you for such a nice vedio

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

    Good job sir

  • @Anjaliartistp
    @Anjaliartistp Před 6 lety

    Please make video for type conversion

  • @derekfurst6233
    @derekfurst6233 Před 6 lety

    you called that function "getdata" but in my class that would be a void setdata function. get data would need to return it. Set data sets the value

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

    sir, why we should used default constructor in this overloading ?? when i avoid default constructor compiler shows error

  • @Abdullahkhan-rp7er
    @Abdullahkhan-rp7er Před 6 lety

    great sir you are very skill full and i appreciate your teaching skill...Dear sir you are from which country??

  • @conleec
    @conleec Před 5 lety

    Why do you need to move the overloading into the global space? I was able to put both the display() function AND the - operator overload into the class itself, and they worked as expected. Is there something I'm missing?

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

    Can we define Void Getdata outside???? By using scope resolution :: ????

  • @aarfeenanees9147
    @aarfeenanees9147 Před 6 lety

    Is using operator overloading possible in the program you made in tutorial no. 23 (the one with complex no.)?

  • @nirmalmk9383
    @nirmalmk9383 Před 4 lety

    In this "-obj1" in the main function, what does it do? How does it work?

  • @sid7720
    @sid7720 Před 2 lety

    You actually did the program for binary operator overloading....put the title accordingly....

  • @Emptity_Friend
    @Emptity_Friend Před rokem

    Very Helpful , Thanks a Lot (

  • @user-bv6in5zj9b
    @user-bv6in5zj9b Před 5 lety

    why did we use void with the opertor function and we didnt use the class type

  • @harshvardhan6333
    @harshvardhan6333 Před rokem

    i have a doubt, why do we need to specially study this -operator overloading when we can do this task using simple function??
    i used operator+ in place of operator- and it is running the same way so what's the difference??

  • @user-bv6in5zj9b
    @user-bv6in5zj9b Před 5 lety

    what is the class memeber access operator?

  • @thetrendings3137
    @thetrendings3137 Před 7 lety +1

    good .................
    please upload more

    • @Codearchery
      @Codearchery  Před 7 lety +1

      Thanks suman , Plz share this with your friends too.
      Yeah I am gonna upload more , If u get stuck anywhere just comment or mail me :-)

    • @thetrendings3137
      @thetrendings3137 Před 7 lety +1

      Sure.
      Thank you Learn Programming In Animated Way.

  • @shubhampatil5993
    @shubhampatil5993 Před 5 lety

    how -obj2 function works.? can u explain in detail.

  • @aloysiuscarvalho2817
    @aloysiuscarvalho2817 Před 4 lety

    Nice video...encourages me to study more...

  • @aparnanaik8181
    @aparnanaik8181 Před 5 lety

    - is a binary operator. How come is it used in this program then?

  • @yvsivareddy777
    @yvsivareddy777 Před 4 lety

    Do you have a STL and Templet videos as a tutorial if yes please send alink i will watch sir

  • @kalpanachinnolla2813
    @kalpanachinnolla2813 Před 7 lety

    supper.sir I need io streams class in c++

  • @arvindu1438
    @arvindu1438 Před 4 lety

    why "-obj1" only call operator overloading function? why don't "obj1" can call it.

  • @stefanmandic4438
    @stefanmandic4438 Před 3 lety

    I get the concept...but still it gets 10 times more difficult when class with pointers come in and sudenly instead of dealing with 30-50 lines u have 200 to work with. Brain sweating...

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

    I am unhappy😒😑😶😣that. I couldn't
    Like this video more than once.......

  • @darkodevil547
    @darkodevil547 Před 9 měsíci

    Music name

  • @nitishkhanna9368
    @nitishkhanna9368 Před 6 lety

    Why is it just declared as "-obj1" in the main function . Shouldn't it be "obj1.operator-" ?

  • @nathanx.675
    @nathanx.675 Před 6 lety +1

    I'm a little confused is demo a constructor? Because you only made a demo class but I don't see any lines where you make a demo constructor...

  • @nathanx.675
    @nathanx.675 Před 6 lety +1

    the music is stuck in my head now

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

      I think u should mute the music and play your own :-)

    • @anishaa3298
      @anishaa3298 Před 6 lety

      try adjusting the speed of the video. great music :D

  • @Luna-fu7ix
    @Luna-fu7ix Před 6 lety +1

    thank you alot but whats the role of (-obj) here ? i mean what if we write (+obj) ???

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

      He has overloaded the "-" operator (as can be seen in the code example he shows) :)

    • @Luna-fu7ix
      @Luna-fu7ix Před 6 lety

      TrubbleBeast thank you.

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

    Some titles are long and the video number gets truncated in the list. If you could, please rename so that the video numbers are near the beginning. Thanks.

    • @Codearchery
      @Codearchery  Před 6 lety

      Yeah , thanks for this comment . I will surely take care of that...
      What's you name by the way cyborgdale..Only If you wish to tell me?

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

      Learn Programming In Animated Way Uh... it's....Dale. (but I'm not a cyborg). When the numbers are at the end and get truncated, it makes it harder to find the next video in the sequence. Just a suggestion.

    • @Codearchery
      @Codearchery  Před 6 lety

      Hii Buddy thanks a lot for your suggestion :-)
      I saw that you commented a lot on my video and I thank u for that
      By the way my Name is Deepak Tathe
      Thanks a lot again for watching my videos and liking them

  • @Usman-qc1dg
    @Usman-qc1dg Před 6 lety

    sir , unary operators means ++ or - - isn't it? .. but, here you are using just - only, is it binary or unary , can you explain it.

  • @sfayar1038
    @sfayar1038 Před 4 lety

    I feel sorry for those who watched this video and didn't click like

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

    please upload more and more such vedios

    • @Codearchery
      @Codearchery  Před 7 lety

      Hi Tanveer , Thanks a lot for Commenting on my videos and Yeah... I'll try to upload more videos as soon as possible.
      Till then enjoy the Learning Process and keep on learning.

    • @kalpanachinnolla2813
      @kalpanachinnolla2813 Před 7 lety

      so easily understandable. I want upstream class in c++

    • @kalpanachinnolla2813
      @kalpanachinnolla2813 Před 7 lety

      so easily understandable. I want upstream class in c++

    • @kalpanachinnolla2813
      @kalpanachinnolla2813 Před 7 lety

      so easily understandable. I want upstream class in c++

    • @kalpanachinnolla2813
      @kalpanachinnolla2813 Před 7 lety

      so easily understandable. I want upstream class in c++

  • @sinaithi95
    @sinaithi95 Před 5 lety

    How is - operator called as -obj1?...for me it sud hv been obj1.-();
    As we called obj1.display();

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

    supper.sir I need io streams class in c++

    • @Codearchery
      @Codearchery  Před 7 lety +1

      Thanks kalpana for Watching my Videos.
      I'll upload videos on input and output stream in C++ :-)