Abstract List<Person>
===

I have written a class that uses a List<Person> variable, where Person is one of my data classes.

I now want another class to do the same for my Animal data class.

What I therefore want to do is abstract (I think that's the term) the class so that I can have a new class, say Object, that I can derive Person and Animal from.

I'm ok with most of this process, but I'm not sure how I set up my list definition and assign it in the constructor.

Something like:

    List<Person> objects = new ArrayList<Person>();

Would translate in the base class:

    List<???> objects;

And in the Constructor Object(Class object):

    objects = new ArrayList<???>();

Does that make sense?
