Why does constructor not required in structure ?
Why does GC don’t remove structures ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Structure is a value type so it is not managed by GC.
Structs can declare constructors, but they MUST take parameters.
Copies of structs are created and destroyed automatically by the compiler, so a default constructor is unnecessary