29 May 15, 10:47PM
(29 May 15, 06:58PM)TheNihilanth Wrote: Now in the strict sense of OOP if it were a class instead of a struct it would be a badly designed class because it's breaking a corner stone in OOP: Encapsulation, since member data is public, and it should be private and it should provide accessors and mutators as a means to change its state.
Well, yeah, I'd do that. I was taught to have member variables private and use getters and setters.