Safely Calling Virtual Members From Constructors...






2.86/5 (5 votes)
Many programmers know what calling virtual members from not sealed class constructor may cause runtime error, because some members used in virtuals could be not initialized. I will show a simple way to call virtuals safely from constructors of inherited classes.