Define constructor in c#.
Answer / Kapil Kumar Jain
In C#, a constructor is a special method used to initialize an object's state when it is created. It has the same name as the class and does not have an explicit return type (not even void).nYou can create multiple constructors for a single class by defining overloaded methods with different parameters.nBy default, C# creates a parameterless constructor if you don't define any constructor yourself.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is system predicate?
Can we inherit static class in c#?
How do I get deterministic finalization in c#?
What is default value of decimal c#?
Why do we use delegates?
Which namespaces are necessary to create a localized application?
Why we need get set property in c#?
What is cts, clr?
Is null empty or whitespace c#?
how background thread access to ui control?
What is the use of New Keyword
Can we assign null value to integer?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)