/static_dynamic_polymorphism

An example of both static and dynamic polymorphism in C++.

Primary LanguageC

Static vs Dynamic Polymorphism

An example of both static and dynamic polymorphism in C++.

Static polymorphism is done using curiously recurring template pattern, while dynamic polymorphism is done with virtual functions.