0
Polymorphism cost
Polymorphism is not for free. We need to pay some cost of price for that. Two of the I know are. 1. Memory cost of virtual table. 2. Run time cost of dynamic binding. Please suggest other cost reasons.
1 Respuesta
+ 1
hello,
Here I have added static polymorphism code, someone please tell it's disadvantage over dynamic polymorphism.
https://code.sololearn.com/cLEZPYlqlvKl/?ref=app