Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Abstract Singleton Class?

807603Jan 31 2008 — edited Jan 31 2008
hi all
i have an abstract class and i want to extend it such that it becomes a singleton. However i wish i can also gain the benefits of abstraction so that i can reference the abstract class whatever the concrete class that extends it
so how can i write the "getInstance()" method in both the abstract and concrete classes knowing that i can't create an abstract static method?!
thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2008
Added on Jan 31 2008
4 comments
1,222 views