Blog LogoBlog Logo

Tag: OOP

All tags

The Public Fields debate again

Back in November last year I wrote about why you should make fields in a class private. Some people still make fields public. I did concede on one argument though...

— 17 Jun 2006

Why make fields in a class private, why not just make them public?

Encapsulation is sometimes also known as information hiding. The idea is that an object hides the details of how it works from the outside world. However, some definitions of encapsulation suggest...

— 28 Nov 2005