Wednesday, May 5, 2010

Static Class Vs Singleton

1) Singleton preserves conventional class approache and dont require that you use the static keyword everywhere.
2) Unlike static classes, we can use singleton as parameters or objects.
3) Singleton class can implement interface whereas static class can not.





























No comments:

Post a Comment