Skip to main content
6 events
when toggle format what by license comment
Jan 3, 2020 at 1:58 comment added Agent Tatsu As i consider it more, I wonder if I will need to explicitly define a paramterless constructor for Attack.Special as well, since I plan to serialize those objects as well. Would you happen to know this?
Jan 3, 2020 at 1:55 comment added Agent Tatsu Reading your explanation made me realize that a better solution would be to give Attack a parameterless constructor. Not only would it allow me to omit explicitly calling the parent constructor, I also plan to use XML serialization, and classes serialized with XML must have an explicit parameterless constructor. Thanks for the info!
Jan 3, 2020 at 1:53 vote accept Agent Tatsu
Jan 3, 2020 at 1:50 comment added Agent Tatsu Thanks for the quick answer. I should add for clarification that I do need my constructor for Attack.Special to take in different arguments than the constructor for Attack. Is this solution going to allow me to do this, or will it make the constructor for Attack.Special become the same as that of Attack?
Jan 3, 2020 at 1:35 review First posts
Jan 3, 2020 at 4:09
Jan 3, 2020 at 1:33 history answered user134830 CC BY-SA 4.0