Overloading Increment and Decrement Operators in Prefix form | C++ Video Tutorial

preview_player
Показать описание
In this c++ Video tutorial, you will learn how to overload increment and decrement operators when they are using as prefix.

You are going to learn how to define operator function in prefix form, how to use friend function to do that in detail with example.

Learn Programming in HINDI at our youtube channel

Catch us on SocialMedia
Рекомендации по теме
Комментарии
Автор

The best C++ tutorial i have seen, thanks bro

fahadnaim
Автор

This lecture deserve more comments,
Thanks for showing every possibilities
Great lecture

rakeshkumaryadav
Автор

Which version of code block you used ?

muhammadnasrullah
Автор

Thank you for your great effort .
But I didn't get why did we pass a parameter when we overloaded the decrement, and we didn't do so with the increment !

tariqkhasawneh
Автор

how can we define both postfix and prefix increment operator at the same time?

cinemaantepichi
Автор

Why isn't return used in the operator overload function? Some other examples i ve checked return the value.

Gnsd
Автор

why this pointer is used for returning

jaisingh-rjlz
Автор

WHY DOESNT IT DECREMENT FROM REAL ONE LIKE INCREMENTED ONE SHOULD BE 69 FROM 68 AND DECREMENTED SHOULD BE 67 FROM 68

haniyabatool
Автор

hey Anil please that's Urgent, how do i use overloading increment and decrement operators in prefix form but when they are used as virtual ??

SuperHamzamadrid
Автор

why do we pass the objects with reference only?

palashchhaperwal