Getting Started with Adobe After Effects - Part 6: Motion Blur
This module helps you to share, discuss and learn interview questions and answers of different technologies

Can structs have constructors?

Dec 26 2011 9:48AM by Manas Ranjan Dash   

Question

Can structs have constructors? (remember structs are not of reference types)

Answer

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 ·  ·  ·  · 


Manas Ranjan Dash
39 · 5% · 1484
0
Liked
 
0
Asked



Submit

Your Comment


Sign Up or Login to post a comment.

"Can structs have constructors? " rated 5 out of 5 by 3 readers
Can structs have constructors? , 5.0 out of 5 based on 3 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]