Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: RE: [platform-swt-dev] org.eclipse.swt.SWT

What if they are all private? Just to use double encapsulation.

Having getters and setters makes programmers think they can ask for the
data in some objects and do a calculation with them instead of asking
those objects to do it themselves.

-----Original Message-----
From: Weiqi Gao [mailto:weiqigao@xxxxxxxxxxxxxx] 

Is that all?  A hundred post thread about setters and getters?  Well,
here's some arguments against setters and getters:

1. They are not object-oriented.
2. They are goofy.


Back to the top