Yurttas/PL/OOL/Cplusplus/F/03/02/00/03.html
programming languages - design principles, implementation constructs
c++
- abstraction mechanisms: classes and operator overloading
- operator overloading
- basic rules - overloaded operators : members or nonmebers
operator recommended use all unary operators member = () [] -> must be member += -= *= /= %= ^= &= |= >>= <<= member all other binary operators nonmember
- basic rules - overloaded operators : members or nonmebers
- operator overloading
1 | basic facilities << 3 >> class derivation | 5 | 6 | 7 | 8