Re: What will be the constructor flow of control
From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 11/17/04
- Next message: Jon Skeet [C# MVP]: "Re: Invalid Cast Exception (ASP.NET using C#)"
- Previous message: Jon Skeet [C# MVP]: "Re: cannot convert from int to ref object"
- In reply to: Joel Martinez: "Re: What will be the constructor flow of control"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 17 Nov 2004 19:22:19 -0000
Joel Martinez <jdmartinez@ea.com> wrote:
> well ... the code you supplied does not compile so I'm having a hard
> time understanding what exactly you're trying to figure out. member
> variables are intialized when the object is instantiated.
>
> does that help?
I suspect the OP wants to know whether the base constructor is called
before or after the member variables are initialized; see my other
response for an answer.
-- Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
- Next message: Jon Skeet [C# MVP]: "Re: Invalid Cast Exception (ASP.NET using C#)"
- Previous message: Jon Skeet [C# MVP]: "Re: cannot convert from int to ref object"
- In reply to: Joel Martinez: "Re: What will be the constructor flow of control"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|