dr. salih yurttas - yurttas@cs.tamu.edu
programming languages - design principles, implementation constructs
c++

  1. abstraction mechanisms: classes and operator overloading

    1. operator overloading

      1. basic rules -

        • operator functions - set of overloadable operators

          functions defining meanings for the following operators can be declared:

          + - * / % ^ &
          | ~ ! = < > +=
          -= *= /= %= ^= &= |=
          << >> >>= <<= == != <=
          >= && || ++ -- ->* ,
          -> [] () new new[] delete delete[]

          << | >>


1 | basic facilities << 3 >> class derivation | 5 | 6 | 7 | 8
computer science | texas a&m university

Valid XHTML 1.0 Transitional