static member question
- From: cdx <jm1@xxxxxxxxxxxx>
- Date: Wed, 25 May 2005 20:55:23 -0400
I'm not sure if java has this capability, but can someone let me know?
Suppose I have Class A, with subclasses A1 and A2
I want a static variable with the same name for each of the subclasses. For instance, I would like to have this heirarchy have a static var called "factory" such that each subclass will have it's own single instance of it. I know that I can define this static var at each of the subclass levels (Class A1 and A2), but is there a way to define it in Class A such that A1 and A2 will have their own? I thought I remember a special type like this in C#, but could not find anything like this in java.
Thanks
cdx .
- Follow-Ups:
- Re: static member question
- From: Sebastian Scheid
- Re: static member question
- Prev by Date: Midi Exception
- Next by Date: Re: Midi Exception
- Previous by thread: Midi Exception
- Next by thread: Re: static member question
- Index(es):