Re: [java-gnome-hackers] BindingSet (was: Update)
Brought to you by:
afcowie
From: Luca De R. <pie...@li...> - 2003-12-27 14:50:32
|
Il sab, 2003-12-27 alle 15:46, Luca De Rugeriis ha scritto: > Il sab, 2003-12-27 alle 13:21, Jeffrey Morgan ha scritto: > > On Sat, 2003-12-27 at 06:41, Mark Howard wrote: > > > On Sat, Dec 27, 2003 at 04:59:07AM +0100, Luca De Rugeriis wrote: > > > > public BindingSet(int handle) { > > > > this.handle = handle; > > > > > > Does this really need to be public? It should only be used internally by java-gnome. > > > > I agree with you Mark that we should limit access as much as possible. > > The only problem I see is with limiting access to this method is when > > another class needs to create a BindingSet object from a handle returned > > from a native call. In that case the Constructor would need to be > > public. We can start with this method as private and change it if > > we need further access. I'm agree, information hiding is essential. I have leave the construtor public cause I've seen other classess do so, but I was asking why there is the need fot it to be public. This e-mail clears the thing, thanks. -- Luca De Rugeriis <pie...@li...> |