LinkedList...inheritance...what?
<p>I don't understand what this homework is asking me to do...</p>

<p>In our last project, we created a person.java class that made an array of people (or just instances of people)...and it had their ID, their mom, their dad, birthdate, number of children, and an array of their children. It had predictable methods like get or set mom and dad, add child, remove child, unset mom or dad, boolean to see if another instance is or is not a child of this instance, get sex, get id...i think that was it.</p>

<p>Anyway...the point of this project is to make small changes to our last project to allow unlimited number of children for each person class. The last project had a static int variable for the maximum number of allowable children set to 10.</p>

<p>To do this, we're to implement a list. And create another class called personlist.java, which is to be a sublcass of java.util.LinkedList. We have to make sure to save Person.java in the same project where we create PersonList.java so that the compler can recognize java.util.LinkedList. The PersonList class should transparently handle all methods related to adding/removing/finding the children of a person. Since PersonList is a subclass of LinkedList, we will have all the LinkedList methods available to us.</p>

<p>I don't even know where to start. I still have my Person.java class. I'm using Eclipse...so I made a new project. Made a class called PersonList.java. Made another class called Person.java and copied my old project into it.</p>

<p>How do I declare the new class so that it "communicates" with Person.java?</p>

<pre><code>import java.util.LinkedList;

public class PersonList extends LinkedList&lt;Person&gt; {

}
</code></pre>

<p>Is that right? I'm also confused as to why we weren't told to just modify Person.java to utilize linked lists. I can do that. Why create another class called PersonList.java? And what the heck goes in there? How do I call methods in PersonList.java from Person.java?</p>

<p>Any insight would be greatly appreciated!</p>
