I want to store Product objects in a array list. Below is the definition of the product class.
    class Product
    {
       public string name;
       public int iD;
       public int price;
       public void addProduct()
       {   
          Console.WriteLine("Enter Name : ");
          name = Console.ReadLine();
          Console.WriteLine("Enter ID : ");
          iD = int.Parse(Console.ReadLine());
          Console.WriteLine("Enter Price : ");
          price = int.Parse(Console.ReadLine());
       }
    }
 
     
    