Click here to Skip to main content
15,911,030 members
Home / Discussions / C#
   

C#

 
AnswerRe: TCp client Question Pin
Zoltan Balazs30-May-08 10:37
Zoltan Balazs30-May-08 10:37 
AnswerRe: TCp client Question Pin
Ennis Ray Lynch, Jr.30-May-08 11:32
Ennis Ray Lynch, Jr.30-May-08 11:32 
AnswerRe: TCp client Question Pin
engsrini31-May-08 12:42
engsrini31-May-08 12:42 
QuestionImage Saving, Mirroring, and Brightening Problems. Pin
Fogdog30-May-08 9:32
Fogdog30-May-08 9:32 
Questionc# Pin
subhankarbiswas30-May-08 9:18
subhankarbiswas30-May-08 9:18 
AnswerRe: c# [modified] Pin
Pete O'Hanlon30-May-08 9:24
mvePete O'Hanlon30-May-08 9:24 
AnswerRe: c# Pin
Bert delaVega30-May-08 12:36
Bert delaVega30-May-08 12:36 
AnswerRe: c# Pin
MarkB77730-May-08 13:20
MarkB77730-May-08 13:20 
Straight from a google search of "constructor"

In object-oriented programming, a constructor (sometimes shortened to ctor) in a class is a special block of statements called when an object is created, either when it is declared (statically constructed on the stack, possible in C++ but not in Java and other object-oriented languages) or dynamically constructed on the heap through the keyword "new".

A constructor is similar to an instance method, but it differs from a method in that it never has an explicit return type, it's not inherited, and usually has different rules for scope modifiers. Constructors are often distinguished by having the same name as the declaring class. Their responsibility is to initialize the object's data members and to establish the invariant of the class, failing if the invariant isn't valid. A properly written constructor will leave the object in a 'valid' state. Immutable objects must be initialized in a constructor.



Cheers,


GeneralRe: c# Pin
MarkB77730-May-08 13:25
MarkB77730-May-08 13:25 
QuestionChar Arrays and strings Pin
ffowler30-May-08 8:36
ffowler30-May-08 8:36 
AnswerRe: Char Arrays and strings Pin
carbon_golem30-May-08 8:50
carbon_golem30-May-08 8:50 
AnswerRe: Char Arrays and strings Pin
engsrini30-May-08 8:57
engsrini30-May-08 8:57 
GeneralRe: Char Arrays and strings Pin
ffowler30-May-08 9:12
ffowler30-May-08 9:12 
AnswerRe: Char Arrays and strings Pin
#realJSOP30-May-08 9:47
professional#realJSOP30-May-08 9:47 
Questionapp.config Pin
Vivek Mahajan30-May-08 8:20
Vivek Mahajan30-May-08 8:20 
AnswerRe: app.config Pin
#realJSOP30-May-08 8:35
professional#realJSOP30-May-08 8:35 
GeneralRe: app.config Pin
Vivek Mahajan30-May-08 8:46
Vivek Mahajan30-May-08 8:46 
GeneralRe: app.config Pin
#realJSOP30-May-08 9:34
professional#realJSOP30-May-08 9:34 
QuestionC#/Asp.net SQL Question Pin
mina mathew30-May-08 8:19
mina mathew30-May-08 8:19 
AnswerRe: C#/Asp.net SQL Question Pin
Jimmanuel30-May-08 9:40
Jimmanuel30-May-08 9:40 
GeneralRe: C#/Asp.net SQL Question Pin
mina mathew30-May-08 16:19
mina mathew30-May-08 16:19 
QuestionProcess start problems [modified] Pin
Xmen Real 30-May-08 6:44
professional Xmen Real 30-May-08 6:44 
AnswerRe: Process start problems Pin
Ennis Ray Lynch, Jr.30-May-08 7:57
Ennis Ray Lynch, Jr.30-May-08 7:57 
GeneralRe: Process start problems Pin
Xmen Real 30-May-08 8:00
professional Xmen Real 30-May-08 8:00 
QuestionPassing info from a thread Pin
brsecu30-May-08 5:21
brsecu30-May-08 5:21 

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.