Reputation
Next privilege 125 Rep.
Vote down
Badges
1
Newest
 Supporter
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 2 votes cast
Apr
23
awarded  Supporter
Feb
3
comment Private variable vs property?
@Sign: the problem is: if the set method of the property can be overridden in a subclass you can have a side effect during the creation of the object or an inconsistent object (i.e: the overridden property is programmed to not set any value for that field). Using properties in constructors is only safe if the set method is private or if the class is sealed.