Dynamic or Static polymorphism - what is better?

A VMT will consume more memory because it needs to keep track of an array of pointers to all virtual methods. Template classes (static polymorbidcats) will require the compiler to implement the codebase for an entire class for each required data type and this will of course increase the size of the binary code.

Now, what is the better sollution: That depends! :wink: