C++ Virtual Functions
Posted on 2004-09-13
I am experienced in C and somewhat in JAVA. I am now working in C++. In JAVA, I know that all methods are virtual and that in C++ they are only virtual if you declare them that way. . .
Is it a good or bad idea to declare all C++ methods as virtual?
I am looking for a FEW opinions here. So, please tell me why as well. I think I know what goes on behind the scenes in virtual vs. non-virtual functions. (I will most likely be writing C++ code to work with or in embedded projects.)