Define constructor in c#.



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

Post New Answer

More C Sharp Interview Questions

What is system predicate?

1 Answers  


Can we inherit static class in c#?

1 Answers  


How do I get deterministic finalization in c#?

1 Answers  


What is default value of decimal c#?

1 Answers  


Why do we use delegates?

1 Answers  


Which namespaces are necessary to create a localized application?

0 Answers   MindCracker,


Why we need get set property in c#?

1 Answers  


What is cts, clr?

1 Answers  


Is null empty or whitespace c#?

1 Answers  


how background thread access to ui control?

1 Answers   HCL,


What is the use of New Keyword

15 Answers  


Can we assign null value to integer?

1 Answers  


Categories