title: Java: Inherit and Be a Singleton
body: <p>To begin with, I am <strong>NOT</strong> trying to create a subclass of a singleton class. (At least I'm sure I'm not trying to).</p>
  
  <p>I have a class <code>ClassA</code> that is abstract.</p>
  
  <p>I have two classes, <code>ClassA1</code> and <code>ClassA2</code> that extend <code>ClassA</code>.</p>
  
  <p>I want <code>ClassA1</code> and <code>ClassA2</code> to be singleton classes. I could just write the code in each one to do so but I would prefer to write the code once in <code>ClassA</code> and reuse it in all of it's sub-classes. Is there a way to do this? </p>