J
john sun
Hello,
I am not newbie C++ developer infact . But till recently I would like dig
up more about C++.
I know those OO details. But when people talking OO they focused on the
polymorphism, and think the "old code" can call "new code" is the biggest OO
feature. But as we know, in C we also can use function pointer to do the
same thing with almost same effort. IMHO, virtual function is just a little
easier to use than function pointer. If C++ FAQ Lite said non-virtual member
function is only suger, ( I agree), then I tend to believe that the virtual
function is well-wrapped suger. Did I miss something here?
Thanks very much for discussion!
John
I am not newbie C++ developer infact . But till recently I would like dig
up more about C++.
I know those OO details. But when people talking OO they focused on the
polymorphism, and think the "old code" can call "new code" is the biggest OO
feature. But as we know, in C we also can use function pointer to do the
same thing with almost same effort. IMHO, virtual function is just a little
easier to use than function pointer. If C++ FAQ Lite said non-virtual member
function is only suger, ( I agree), then I tend to believe that the virtual
function is well-wrapped suger. Did I miss something here?
Thanks very much for discussion!
John