In c# i need to Create an application named TestSoccerPlayer that instantiates and displays a SoccerPlayer object. The SoccerPlayer class contains the following properties: Name - The player’s name ( a string) JerseyNum - The player's jersey number (an integer) Goals - Number of goals scored (an integer) Assists - Number of assists (an integer) using static System.Console; class TestSoccerPlayer { static void Main() { // Write your main here. } } class SoccerPlayer { // Write your SoccerPlayer class here. }
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
In c# i need to
Create an application named TestSoccerPlayer that instantiates and displays a SoccerPlayer object. The SoccerPlayer class contains the following properties:
- Name - The player’s name ( a string)
- JerseyNum - The player's jersey number (an integer)
- Goals - Number of goals scored (an integer)
- Assists - Number of assists (an integer)

Here is an example of how you could implement the SoccerPlayer class and instantiate an object of it in the Main method of the TestSoccerPlayer class:
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images









