What is Static Polymorphism? Give its syntax and simple example.
rdl
Dec 28th, 2014
The call to a function is resolved at compile time. Eg., function overloading and templates.
Youssef Arbach
Dec 12th, 2014
Static polymorphism could be seen also with Templates, since the selection of the write function is done at compile time. Usually with inheritance (and call-by ref sure) polymorphism is dynamic, unless it is a call by-value, then there would be no morphism at all.