C++ Tutorial: Operator Overloading Part 7 - Addition and Subtraction Operators

preview_player
Показать описание
Part 7. In this video, the +=, -=, + and - operators are overloaded for our Vector2 class. These operators will enable us to add and subtract instances of the vector 2 class very easily. Concepts are demonstrated such as returning by reference and value, utilizing previously implemented operator functions, as well as using the copy constructor effectively.
Рекомендации по теме
Комментарии
Автор

Some very good videos. These have really been very informative. Probably some of the best c++ tutorials I've seen

josheppley
Автор

Helpful videos, keep up the good work !

robertfreeman
Автор

why have to created getter and setter functions ?
they are not needed, you can access them directly since your operators are member functions.

RamadhirAdventures
Автор

Helpful videos, keep up the good work !

robertfreeman
visit shbcf.ru