public Buddies(string Name, Winner MyBet, int Cash, CheckBox objcheckBox, Label MyLabel) { //passing the local value to global variable using this keyword this.playerName = Name; this.MyBet = MyBet; this.playerCash = Cash; this.objcheckBox = objcheckBox; this.MyLabel = MyLabel; }