using System.Collections.Generic;
public List<int> PlayerList { get; set; } = new List<int>();
public void AddOversDetails(int oversBowled){
PlayerList.Add(oversBowled);
foreach(int i in PlayerList){
Console.WriteLine("Balls Bowled : " + GetNoOfBallsBowled());
public int GetNoOfBallsBowled(){
public static void Main()
Console.WriteLine("Enter the number of overs");
int overs = Convert.ToInt32(Console.ReadLine());
PlayerBO pb = new PlayerBO();
pb.AddOversDetails(overs);