OPERATORS and OPERATOR OVERLOADING in C++

preview_player
Показать описание


Gear I use:
-----------------

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

This guy is legit, for some reason after using C++ for 4 years, i feel like i never learned the language enough

sankalpsharma
Автор

After pausing the video 3 times, and meditating I finally got it, thank you Cherno

jerfersonmatos
Автор

Sometimes. you just go through so much information and you understand it but you don't really understand it. Then sometimes, you stop to think and apply what you just learnt and you really understand the concept and you feel like your brain just expanded a little. This is happening too frequently since I have started watching this series.

nakonniket
Автор

Cherno, thanks for these videos. After taking a year off of coding after school to pursue something else, reviewing these topics from a real-world use-case standpoint makes them make a lot more sense as to what they are useful for compared to how we learned them in school. Yes, we learned them well in school, but it was rarely made clear as to what the expected usage of each topic should be. I now have a better understanding of when I should overload operators!

benjaminbirchman
Автор

Love this channel, I wish I found it 5 years ago back in university

eddyecko
Автор

Basically do a:
Vector2& operator++() {
return (*this)--;
}
Vector2& operator--() {
return (*this)++;
}
And watch the world burn.


Pity that it wouldn't work.

xonxt
Автор

master class on operator overloading .
Note:
playback speed: 0.75;

Mandeepsingh-jocf
Автор

I'm loving C++ and your series <3
I'm going to feel much more free programming in this language.

benjamin_boeri
Автор

man, I must seem crazy being alone and clapping after each amazing video, TXS

lisandrob
Автор

Learning this in my CS class kinda made me die inside. I was able to understand you much more easily, thank you!

cortisol_induced_coma
Автор

Boy thanks again.
This series has been on loop in my home for 3 months.
I have been needing to override the ostream and was wondering what to do... and == TY for showing those useful tips

matt-g-recovers
Автор

Me and the bois watching The Cherno and growing brain cells

kenan
Автор

By far my hardest C++ lesson, might have to review previous lessons

lolxdroflmao
Автор

"I left out operator overloading (in java) as a fairly personal choice because I had seen too many people abuse it in C++.
"

James Gosling

SeanForeman
Автор

If people need to go to the definition of your operator to understand what it does, you're probably not doing your job.

Great video, Cherno!

patrickmayer
Автор

At [ 5:57 ] you may have noticed he used the *operator* along with the *function* for the addition (which is defined just above that code by the way).
Many of you may have thought ... Hey, can it cause performance issues !?, or can lead to slightly lower performance, the answer is ... *Yes*, but it depends ...

- If you're making a *specific program* (for yourself), then do make a *single operator*, not along with the function.. As, it is really unnecessary.
- If you're designing your own *specific Library*, then do what *Cherno* did.
It will increase the *Functionality* and the *Flexibility* of your Library class.

_Long story short ... It all depends._

TheMR-
Автор

So clear, so neat and so well explained.

antoinedevldn
Автор

This series is FABULOUS Cherno! You've clarified all of my doubts, thank u buddy =D

hugoalmeida
Автор

Just what i was interested in. Thanks for the great stuff

codysing
Автор

Taking my first programming class and this series has been really helpful. Thank you.

LS-toqv