Click here to Skip to main content
15,915,328 members
Home / Discussions / C#
   

C#

 
AnswerRe: Constructors in C# Pin
Scott Dorman9-Mar-07 17:31
professionalScott Dorman9-Mar-07 17:31 
AnswerRe: Constructors in C# Pin
Zoltan Balazs10-Mar-07 1:59
Zoltan Balazs10-Mar-07 1:59 
GeneralRe: Constructors in C# Pin
Captain See Sharp10-Mar-07 13:42
Captain See Sharp10-Mar-07 13:42 
AnswerRe: Constructors in C# Pin
S. Senthil Kumar10-Mar-07 5:20
S. Senthil Kumar10-Mar-07 5:20 
GeneralRe: Constructors in C# Pin
Captain See Sharp10-Mar-07 13:37
Captain See Sharp10-Mar-07 13:37 
GeneralRe: Constructors in C# Pin
S. Senthil Kumar10-Mar-07 13:46
S. Senthil Kumar10-Mar-07 13:46 
GeneralRe: Constructors in C# Pin
Captain See Sharp10-Mar-07 13:51
Captain See Sharp10-Mar-07 13:51 
GeneralRe: Constructors in C# Pin
gumi_r@msn.com10-Mar-07 14:29
gumi_r@msn.com10-Mar-07 14:29 
It will always create a default parameterless public constructor unless you define your own constructor(s). That's why when you want to create a purely static class, you explicitly define a private constructor (typically parameterless)...that way you avoid having a default public constructor and therefore your class has no accesible constructors at all. If you dont explicitly add this private constructor your class would automatically have the default public one and consumers would be able to instantiate it.

And yes, any derived class constructor will attempt to call the default constructor of it's base class if no other constructor of said base class is explicitly called in your code.
GeneralRe: Constructors in C# Pin
Captain See Sharp10-Mar-07 13:54
Captain See Sharp10-Mar-07 13:54 
GeneralRe: Constructors in C# Pin
S. Senthil Kumar10-Mar-07 14:21
S. Senthil Kumar10-Mar-07 14:21 
QuestionState Mangement Pin
Renuka Reddy9-Mar-07 15:33
Renuka Reddy9-Mar-07 15:33 
AnswerRe: State Mangement Pin
Udhaya Kumar.D10-Mar-07 4:19
Udhaya Kumar.D10-Mar-07 4:19 
Questionadding a property to user control Pin
dino20949-Mar-07 12:57
dino20949-Mar-07 12:57 
AnswerRe: adding a property to user control Pin
Captain See Sharp9-Mar-07 16:06
Captain See Sharp9-Mar-07 16:06 
QuestionIRIS Recgonition Pin
shdelpiero9-Mar-07 11:29
shdelpiero9-Mar-07 11:29 
AnswerRe: IRIS Recgonition Pin
User 17164929-Mar-07 14:01
professionalUser 17164929-Mar-07 14:01 
QuestionColors Pin
Ranger499-Mar-07 10:42
Ranger499-Mar-07 10:42 
AnswerRe: Colors Pin
Judah Gabriel Himango9-Mar-07 10:44
sponsorJudah Gabriel Himango9-Mar-07 10:44 
GeneralRe: Colors Pin
Ranger499-Mar-07 10:51
Ranger499-Mar-07 10:51 
QuestionResizing a bitmap..... Pin
samreengr89-Mar-07 10:41
samreengr89-Mar-07 10:41 
AnswerRe: Resizing a bitmap..... Pin
Thomas Stockwell9-Mar-07 12:39
professionalThomas Stockwell9-Mar-07 12:39 
QuestionNeural Nets help Pin
haseeb_saeed9-Mar-07 8:35
haseeb_saeed9-Mar-07 8:35 
QuestionHow to Find Files - Compact framework Pin
abalbo9-Mar-07 7:55
abalbo9-Mar-07 7:55 
AnswerRe: How to Find Files - Compact framework Pin
Wjousts9-Mar-07 10:51
Wjousts9-Mar-07 10:51 
GeneralRe: How to Find Files - Compact framework Pin
abalbo9-Mar-07 12:09
abalbo9-Mar-07 12:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.