static member question



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
.