4 Matching Annotations
  1. Jan 2021
    1. class Specific : public Base<Specific>

      Use parametric polymorphism with inheritance,

    2. Parametric Polymorphism

      "Inheritance" is run time poluymorphism.

      "Generic" is parametric poluymorphism. poluymorphism at complie time.

      • A list of any types
      • A list of some contraint types
    3. This slide explore "design" in software engineering.

      1. Starts with Polymorphism. Composition is usually prefer over Inheritance.
    1. Two-complement: First bit is sign bit, interrupted as negative number.

      10 = 01010 -> 8 + 2 = 10 -10 = 10110 -> -16 + 4 + 2 = 210