You have recursion with setting playerNo
.
In the playerNo
setter, try setting this._playerNo = 0
.
In the rest of the code, continue to make a distinction between the name of the setter method and the internal property that stores the data.
You have recursion with setting playerNo
.
In the playerNo
setter, try setting this._playerNo = 0
.
In the rest of the code, continue to make a distinction between the name of the setter method and the internal property that stores the data.