Structs are not reference types. Can structs have constructors?



Structs are not reference types. Can structs have constructors?..

Answer / Abdul Samad

"Yes, structs can have constructors in C#. This helps with initializing complex structures."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What does mean before a string in c#?

1 Answers  


What is the function of .IsDescendent()?

1 Answers   Abacus,


Will the following code compile and run?

1 Answers  


Can an int be negative c#?

1 Answers  


Is an interface a type c#?

1 Answers  


Why do we need singleton class in c#?

1 Answers  


If c# destructors are so different to c++ destructors, why did ms use the same syntax?

1 Answers  


What is the default value of date?

1 Answers  


Is XML case-sensitive?

3 Answers   Wipro,


What are properties in C#?

1 Answers   UGC Corporation,


Is it possible to have different access modifiers on the get/set methods of a property in c#?

1 Answers  


What is hashtable c#?

1 Answers  


Categories