
A struct is a value type and a value type must have a default value as soon as it is declared.
AClass myClassObj;
AStruct myStructObj;
If you declare two fields as above without instantiating either, then break the debugger,
myClassObj will be null but
myStructObj will not . Given this, a parameter-less constructor would make no sense;
In fact all constructor on a struct has some value assign, we get this just by declaring it.
--
Thanks & Regards,
RNA Team
Harieswer, if this helps please login to Mark As Answer. | Alert Moderator