Operators

Nasza ocena:

3
Wyświetleń: 721
Komentarze: 0
Notatek.pl

Pobierz ten dokument za darmo

Podgląd dokumentu
Operators - strona 1 Operators - strona 2

Fragment notatki:

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)

Zaloguj się, aby dodać komentarz