Copy Constructor in Child but not Parent
<p>I have the following two classes:</p>

<pre><code>public class User {
     public Integer userId;
     // ...another 50-60 fields
}

public class SuperUser extends User {
}
</code></pre>

<p>I would like to have a constructor in SuperUser which takes an object of type User and creates an object of type SuperUser. For example:</p>

<pre><code>public SuperUser(User theUser) {
    // not legal -&gt; but I am looking for a one-liner to initialize this with values from theUser
    this = theUser;
}
</code></pre>

<p>If the User object lacks the constructor User(User existingUser), is there any automatic way to initialize the SuperUser object with all of the fields from the existing user object? I'm trying to avoid 50 lines of:</p>

<pre><code>public SuperUser(User theUser) {
    this.firstName = theUser.getFirstName();
    this.lastName = theUser.getLastName();
    // and so on....
}
</code></pre>

<p>If this cannot be done, is there a refactoring like "Create Copy Constructor?"</p>

<p>Thanks!</p>
