By mswatcher
via blogs.msdn.com
Published: Jun 05 2008 / 05:20
I got a question from a user recently noting that the order was not as he expected. One naively expects that the order will go "base initializers, base constructor body, derived initializers, derived constructor body". In fact the order actually is that first all the initializers run in order from derived to base, and then all the constructor bodies run in order from base to derived.
SaveShareSend
Tags: other languages
Add your comment