Struct Or Class

10 June 2014

Programmers’ theoretical minimum: when a struct is better than a class

If the concept that you want to model has no state, simply use a struct and not a class. Indeed, the state of an entity is implicitly private. Class’ members and methods are private by default.

##Further Information


blog comments powered by Disqus