What is a constructor in c#?

Answer Posted / glibwaresoftsolutions

• 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

Can a class have multiple constructors c#?

676


What are access modifiers used for?

826


What is the use of partial methods?

800


What is the difference between list and array in c#?

680


Are structs faster than classes?

725


What is the difference between dictionary and hashtable in c#?

711


Can you use foreach iteration on arrays in c#?

810


Illustrate namespaces in c#?

754


Why we use get and set method in c#?

712


What is the difference between paramaterized constructor and copy constructor?

732


Explain the process of abstraction with an example?

703


what is boxing and unboxing?can we initialize unboxing directly?

711


What is managed or unmanaged code?

870


What is the difference between decimal and integer?

767


What is a strong name in c#?

1035