Create a class player and implement relevant member functions and member variables inside your class.
using System;
using System.Collections.Generic;
namespace App
{
  class Player
  {
    private string playerName;
    public string PlayerName
    {
      get { return playerName; }
      set { playerName = value; }
    }
    private int matchedPlayed;
    public int MatchedPlayed
    {
      get { return matchedPlayed; }
      set { matchedPlayed = value; }
    }
    private int runs;
    public int Runs
    {
      get { return runs; }
      set { runs = value; }
    }
    private double highestScore;
    public double HighestScore
    {
      get { return highestScore; }
      set { highestScore = value; }
    }
    public Player(string a, int b, int c, double d)
    {
      this.playerName = a;
      this.matchedPlayed = b;
      this.runs = c;
      this.highestScore = d;
    }
    Â
  }
  class Program
  {
    public static void Main()
    {
      Console.ReadLine();
    }
  }
}
Comments
Leave a comment