How do you do this in C#?
Here an example of what I tried:
class Player
{
public Player(string position = "MC")
{
//Code, etc went in here
}
//Rest of class
}
It gave me an error that said I couldn't define a parameter's value or something like that.Didn't turn up anything with a search. ;).
P.S.
Nice forums.


Sign In
Create Account


Back to top









