Yurttas/PL/OOL/Cplusplus/F/03/02/02/00/12/index page
Jump to navigation
Jump to search
Dr. Salih Yurttas - yurttas@zcubes.com
programming languages - design principles, implementation constructs
c++
- abstraction mechanisms: classes and operator overloading
- class/object construction - operator overloading
- V - [ vector class with OCCF and operator overloading ] default values for default constructor
and operator[], operator+ is overloaded[] can be used both in lhs and rhs.+ is implemented as a member function so that it is with one parameter. lhs is mutable.
[you shouldn't attempt to return an object unless there is a need for it.]
return type is object, but no object return is specifiedV.cpp and v_00.cpp will compile, but result of + will be null value.
- V - [ vector class with OCCF and operator overloading ] default values for default constructor
- class/object construction - operator overloading
1 | basic facilities << 3 >> class derivation | 5 | 6 | 7 | 8