Can we say that virtual function(Polymorphism) is for comfort(ease of handling) as Templates are??
        Posted  
        
            by Narek
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Narek
        
        
        
        Published on 2010-05-28T13:20:35Z
        Indexed on 
            2010/05/28
            13:31 UTC
        
        
        Read the original article
        Hit count: 160
        
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?
© Stack Overflow or respective owner