List which have different objects
<p>Lets say i have</p>

<pre><code>class Person {
    String Age;
    String Name;
}

Class Employee  {
    int Salary;
    String Name;
}
</code></pre>

<p>I have various instances of these classes which are in a list.
I have created 2 separate function which accepts <code>List&lt;Person&gt;</code> and <code>List&lt;Employee&gt;</code> and display the contents.
but i want to create a generic function which accepts List of any object and do the display part.</p>

<p>Please help me</p>

<p>Thanks
Sunny</p>
