Skip to content

FlorianLautenschlager/polymorphism-101

Repository files navigation

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

About

C++ Polymorphism Examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages