title: Derived class constructor taking base class object
body: <p>I am trying to extend <code>BitmapDrawable</code></p>
  
  <pre><code>public class CenterClampedBitmapDrawable extends BitmapDrawable
  </code></pre>
  
  <p>I want to have a constructor that takes a BitmapDrawable and uses it to set my baseclass properties.</p>
  
  <pre><code>public CenterClampedBitmapDrawable(BitmapDrawable src) {
  </code></pre>
  
  <p>I can not work out how to do this, if <code>BitmapDrawable</code> had a copy constructor then I think I would be OK but it has not got one.</p>
  
  <p>I am fairly new to java and this has me stumped, it's trivial in C++</p>