Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] SWT Event class design

The fact that they are public fields means that anyone can modify them and change the nature of the event. Seems like an odd design to me, but maybe there is a reason for it.

On Jan 28, 2011, at 4:13 PM, Jacob wrote:

What would be the point to have methods if they just forward to the instance variables?

/Jacob Carlborg

On 28 jan 2011, at 11:21, petru lincu wrote:

Hi,

I would like to know what is the reason why Event class is designed with public fields instead of private with getters and setters methods.

Thanks and Best Regards,
Iulian

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top