Re: static or not?
- From: "hawat.thufir@xxxxxxxxx" <hawat.thufir@xxxxxxxxx>
- Date: 23 May 2005 20:23:26 -0700
iamfractal@xxxxxxxxxxx wrote:
....
> If I use a singleton, then I can strip away an interface from this
> singleton, and have it register that interface in the Registry.
>
> If I use static methods, I cannot do this: static methods are not
> allowed to hide the instance methods of the interface.
>
> This is the major reason I use a singleton, instead of a class of
> static methods.
....
would expand on your thoughts here? instead of having, for example, a
"driver" class you'd have a singleton?
thanks,
Thufir
.
- Follow-Ups:
- Re: static or not?
- From: iamfractal
- Re: static or not?
- References:
- static or not?
- From: David Vanderschel
- Re: static or not?
- From: iamfractal
- static or not?
- Prev by Date: Re: Calling a static member from an instance
- Next by Date: Re: getAppletContext() Null pointer exception
- Previous by thread: Re: static or not?
- Next by thread: Re: static or not?
- Index(es):
Relevant Pages
|
|