Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 479 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 479 Bytes

Polymorphism-101

The repository contains some small c++ source code examples showing different types of polymorphism.

Examples

  • Ad Hoc Polymorphism
    • Function overloading -> function_overloading)
    • Operator overloading -> operator_overloading)
    • Coercion (implicit + explicit) -> coercion
  • Universal Polymorphism
    • Parameter -> generic_function
    • Inclusion (sub-typing + Inheritance) -> virtual_function

Development

I was using a Mac + XCode + AppCode