Tuesday, April 17, 2012

Disadvantage of Static Classes

@Mark: Of course not. That wasn't really the point of the example. You still have to instantiate an object of that type in order to call its Copy method. Is there a reason you think that is preferred?Cody Gray Dec 6 '10 at 14:40
1
@Cody Gray: Yes. Static classes can't implement interfaces, so they lead towards tightly coupled code.Mark Seemann Dec 6 '10 at 14:41
http://stackoverflow.com/questions/4367347/constructor-parameters-vs-method-parameters

No comments:

Post a Comment