To tylko jedna z 2 stron tej notatki. Zaloguj się aby zobaczyć ten dokument.
Zobacz
całą notatkę
Operators What is an operator a = b.val 4 + c * d[ e++ ] operator defines operations performed on its arguments and the type of the resulting expression - similarly to functions in C++, we may define operators to be used with objects (at least one argument of the operator should be an object) Most operators are overloadable Overloading may improve performance - similarly to functions There is no obligation, and usually no need either, to define a lot of operators Instead of an operator that is used rarely it is advised to declare a method or a function
... zobacz całą notatkę
Komentarze użytkowników (0)