using System.Collections;
public Stack stk = new Stack();
public void AddOversDetails(int oversBowled)
public int GetNoOfBallsBowled()
int over = Convert.ToInt32(stk.Peek());
public static void Main()
PlayerBO p = new PlayerBO();
Console.WriteLine("Enter the Number Of Overs : ");
p.NoOfOvers =Convert.ToInt32(Console.ReadLine()) ;
p.AddOversDetails(p.NoOfOvers);
Console.WriteLine("Balls Bolwed : "+ p.GetNoOfBallsBowled());