Thursday, November 27, 2003

Re: Polymorphism

And the penalty associated wouldn't be "much". An extra function call and extra space for a v-pointer for every object of the class having the virtual function. I do not think an extra function call would make that much of a difference as long as it's not executed large number of times, in a loop for example. The flexibility the whole thing offers is simply awesome.

No comments: