C++ Tutorial: Operator Overloading Part 4 - Equality Operators

preview_player
Показать описание
Part 4. This video demonstrates how to implement overloaded operator functions for our Vector2 class, including the "is equal to" operator, and "not equal to" operator. The overloaded operators are then tested in a simple application.
Рекомендации по теме
Комментарии
Автор

I thought those method were public they have this sign next to them :: which shows they are public method for that specify class. I am thinking its good programming skill to call those private variables from the getter? i could be wrong

alkolaqi
visit shbcf.ru