I marked it false but it was marked incorrect. because I feel that Virtual functions implement the concept of polymorphism. So should I challange the question?
A fresh look at technology.
I marked it false but it was marked incorrect. because I feel that Virtual functions implement the concept of polymorphism. So should I challange the question?
Powered by Yahoo! Answers
Yes
Hmm I would politely ask the teacher about the question. I believe you are correct in saying that “Virtual functions implement the concept of polymorphism.”
They’re not the same thing: virtual functions are used to define an INTERFACE for a class, where polymorphism is an expression of the INHERITANCE of those interfaces into actual functionality.
Third poster is wrong.
Polymorphism and virtual functions is the same concept.
Polymorphism – determine the function called at run-time based on the specific class that implements the interface.
Virtual Function – function marked for dynamic binding to be resolved at run-time (based on the class that implements it). Don’t challenge the question because you will lose.
I would definately ask the teacher about it, at least have them explain it to you as I would agree.
Ahmed is correct.
http://en.wikipedia.org/wiki/Virtual_function
http://dictionary.reference.com/browse/polymorphism