PDA

View Full Version : when don't you want a virtual function?



ColacX
07-05-2009, 03:59 PM
when you program a class A and then make a class B that extends class A, then why wouldn't you want all the functions in class A to be virtual?

Dark Photon
07-05-2009, 05:12 PM
This has what to do with OpenGL or even graphics exactly?

Consult the C++ FAQ Lite (http://www.parashift.com/c++-faq-lite/).