Re: overload constructor
- From: "gordon" <gordononline@xxxxxxxxxxxxxxx>
- Date: Sat, 3 Dec 2005 17:15:58 +1100
Thanks Thi
Being still at the learning gate of this language I like to get clarity
about the various elements. Most of the books I have read or are reading
about C# seem to assume that the readers understand these concepts and
therefore they skim over a detailed explanation.
Do you know of any website links that cover these concepts? I struggled
with 'state' for a while because the material that I was reading assumed it
was obvious - maybe not to me.
Thanks again to you and Jon.
Doug
"Truong Hong Thi" <thi1981@xxxxxxxxx> wrote in message
news:1133586636.114534.289110@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi Doug,
>
> Doug wrote:
>>And overloading would allow different parameters to be provided to the
>>method of different instances of that class??
> This sentence appears difficult to understand.
> The constructor is a special method used to initialize the instance.
> The parameters of the constructor are used to initialize the object.
> Sometimes you wish to specify more values; sometimes you want to
> specify less and let the object uses defaults; sometimes you could only
> specify some at the time of instantiation, and will set some properties
> later. Constructor overloading makes life easier by provide you with
> many choices to initialize the object at the time it is created.
>
> Thi
>
.
- Follow-Ups:
- Re: overload constructor
- From: Simon
- Re: overload constructor
- From: Truong Hong Thi
- Re: overload constructor
- References:
- overload constructor
- From: Doug
- Re: overload constructor
- From: Jon Skeet [C# MVP]
- Re: overload constructor
- From: gordon
- Re: overload constructor
- From: Truong Hong Thi
- overload constructor
- Prev by Date: How to refresh row background of listview control
- Next by Date: [MSIL Generation] Local Array Initialisers
- Previous by thread: Re: overload constructor
- Next by thread: Re: overload constructor
- Index(es):
Relevant Pages
|
Loading