What is a constructor in c#?

Answer Posted / nashiinformaticssolutions

• A constructor is a special member function used to initialize objects. It has the same name as the class and no return type.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are events in C#?

749


In .Net, what is an assembly? Also explain the type of assembly.

719


Is php easier than c#?

694


How does foreach loop work in c#?

713


Explain nullable types in c#?

738


Can we declare private class in c#?

681


What is cshtml extension?

716


How is method overriding different from overloading?

784


How big is a 64 bit integer?

685


How do I create a multilanguage?

722


What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?

809


What is console read in c#?

695


What are the benefits of using generics?

719


If you define a user defined data type by using the struct keyword, is it a value type or reference type?

712


What are mutable and immutable types in c#?

696