Link Details

Link 85063 thumbnail
User 225256 avatar

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.
  • 5
  • 1
  • 552
  • 203

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (5)



Voters Against This Link (1)