Yurttas/PL/OOL/Cplusplus/F/03/02/02/00/06/index page

From ZCubes Wiki
Jump to navigation Jump to search
Dr. Salih Yurttas - yurttas@zcubes.com
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 ] default values for default constructor
        and operator[], operator+ is overloaded[] can be used both in lhs and rhs.+ is implemented as a friend function so that it is with two parameters. lhs is mutated.
        return type is object, but no return value. [ this is not acceptable null value is returned ]

1 | basic facilities << 3 >> class derivation | 5 | 6 | 7 | 8