Increment & Decrement Operator Overloading in C++ | Unary Operator Overloading Program Example

preview_player
Показать описание
Support Simple Snippets by Donations -
--------------------------------------------------------------------------------------------- In this C++ programming video tutorial with will perform increment and decrement operator overloading. We will overload both pre and post increment and decrement operators and will see example c++ program.
Operator Oveloading in C++
C++ allows you to specify more than one definition for an operator in the same scope, which is called operator overloading.
You can redefine or overload most of the built-in operators available in C++
It is a type of polymorphism in which an operator is overloaded to give user defined meaning to it.
Almost any operator can be overloaded in C++. However there are few operator which can not be overloaded. Operator that are not overloaded are follows-
scope operator (::)
sizeof
member selector –(.)
member pointer selector – (*)
ternary operator – (?:)

Simple Snippets Official Website -
Simple Snippets on Facebook-
Simple Snippets on Instagram-
Simple Snippets Google Plus Page-
Simple Snippets email ID-

UpSkill is an Ed-Tech Company / Coaching Centre for Information Technology / Computer Science oriented courses and offer coacing for various Degree courses like BSc.IT, BSc.CS, BCA, MSc.IT, MSc.CS, MCA etc.

Contact via email /call / FB /Whatsapp for more info

We also Provide Certification courses like -
Android Development
Web Development
Java Developer Course
.NET Developer Course
Check us out on Social media platforms like Facebook, Instagram, Google etc

Intro Music by - DSTNCT MUSIC
Рекомендации по теме
Комментарии
Автор

Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌

SimpleSnippets
Автор

No understanding in college...full understanding in ur video !

shahrahul
Автор

Wish I looked this up first last night before i spent 4 unsuccessful hours trying to get my code to work. Makes so much more sense now compared to the text book! Thanks for what you do!

dustinlim
Автор

You deserve a million subscribers!!! you explained me the concepts which my college faculty could not.

wizard.
Автор

Thanks, I am very confused on pre and post increment but now it is clear, thanks again

Mr_Dilo
Автор

Thank u so much Sir ....I didn't had any idea about Operator Overloading but now as I've watched both videos.. I've a lot...Boht Shukriya✨

kakarrot
Автор

thank you for this great explanation with a simple and intelligible example.

realpriyanshu
Автор

Thank u so much sir I wish my university teachers would explain like u

eshantdas
Автор

It's also worked fine if we declare return type as int instead of weight, It is right to do like that.

sanjayr
Автор

Thank you sir for such a stunning explanation.

tabassumhafsa
Автор

Thanks a lot, well explained thanks for your

SM-ehvz
Автор

you are a good teacher and keep it up the good work

worldfacts
Автор

bruh my professor and u sound same but somehow i understand yo video.

kanchabeni
Автор

Can you please tell me why ++() for pre increment &&for post increment ++(int) in overloaded function???

sumanthchakravarthi
Автор

Why is both pre and post increment functioning similarly when operator function is void. ?? But at the end, it is functioning alright when return type is Weight.

surendrabhusal
Автор

Sir....is it necessary to make parameterized constructor Weight (int x) ?
Coz my worked fine without it

thefive.am.c
Автор

Sir, how to know that where we should keep ++ before obj and ++ after obj ?

yashgoyal
Автор

You should not be using another temp object. It can be done without using too. Hence less memory will be used.

VipinKumar-ussr
Автор

Kya Bhai ..yl...
Raat me Sona chaiihye
...
Anyways video is good for everyone ✋👊

prashantdeuja
Автор

Bro full 11 and 12 class C++course dheere dheere upload krdo
Do not miss not atleast one videos

satishsharma-rbbj