Can we say that virtual function(Polymorphism) is for comfort(ease of handling) as Templates are??
- by Narek
For example concept of Templates in C++ are for comfort as compiler generates some additional code, for your class or for your function, isn't it? So we could live without template by doing some additional (manual work).
What about virtual functions???
Are there any situations where both of them are irreplaceable?