Thursday, June 12, 2014

Code Analysis :Avoid Calling Virtual Method in Constructor.


 
 
The above code is referenced from Bill Wagner post. The intent is the base constructor get called first and which indeed called Vfunc of derived class as in runtime the derived class had to be initialized.

No comments :