Can structs have constructors? (remember structs are not of reference types)
Structs can declare constructors, but they must take parameters. It is an error to declare a default (parameterless) constructor for a struct. Struct members cannot have initializers. A default constructor is always provided to initialize the struct members to their default values.
Read More..   [78 clicks]
Published under: C# Interview Questions and Answers · · · ·