using System;
using System.Collections.Generic;
using System.Linq;
public class Program
{
public static void Main(string[] args)
// Objective. Implement 2 Types of Polymorphism inheriting IPerson interface which perform [work] method.
// 1.Create initialData with 10 records using loop (for) inside createInitialData method
List<Person1> person1List = new List<Person1>();
//Iterate your list here and Perform your work here.
//2. Get the older person
//3. Get the customer from 3 to 4 index from highest to lowest age order.
//4. Execute overload method using older Person.
//5. Remove record from index
}
public void CreateInitialData() { }
public interface IPerson
string Name { get; set; }
int Age { get; set; }
void work();
void work(int test);
public class Person1 { }
public class Person2 { }