Answer to Question #281473 in C# for Amiy

Question #281473

Create a class player and implement relevant member functions and member variables inside your class.

1
Expert's answer
2021-12-20T09:57:26-0500
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();
        }






    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS