construct object from parent class
<p>A extends B, may i reference B suboject in A's constructor? </p>

<pre><code>public A(B b)
{
  /*(B)this = b*/
}
</code></pre>

<p>If not, how do i construct an A object with a B object?, i mean other that using Cloneable to create some other instance or solutions out of the JLS (dozer, beanutils, etc.). In a nutshell, how would the A constructor look like to make this code to run?    </p>

<pre><code>B b = new B("hi");
A a = new A(b);
assertequals(a.getSalute(), "hi");//ok so far

a.setSalute("hola");
assertequals(b.getSalute(), "hola");//A maintains a reference to B

f(a);//prints hola
f(b);//prints hola as well
</code></pre>

<p>Thanks in advance</p>
