Introduction

One of the technical options to support polymorphie in C++ are virtual methods. This blog post gives an overview of how to use them, how they are implemented by compilers and what are the performance implications of using them.

Small example

class Shape { virtual double caculateSize() = 0; virtual ~Shape()=default; };

Ressources