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

  1. abstraction mechanisms: classes and operator overloading
    1. class/object construction - operator overloading
      1. V - [ vector class with OCCF and operator overloading ]
      2. default values for default constructor
        and operator[] is overloaded as read-only

        v_00.cpp will not compile successfully since it uses read-only operator on the lhs, but v_01.cpp will be ok.


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

Valid XHTML 1.0 Transitional