How to switch Player, into a different player using a button ('1' key)

Hello, I have been stuck on this problem for many weeks now. I do not know where to begin this code. So here is what I am trying to accomplish:
I would like it for the player to select ‘3’ different characters. When you play the game you start out as one of the characters and then when you hit a key (example: ‘1’ key) you switch to the next character which looks different, fires a different weapon with different damage, and has different health. Code from C++ or Java would help. I do not know where to start this anything would help THANK YOU! If you need any code please just ask and I will post it right away!

Use soemthing like this.

var activePlayer : GameObject

Then of course have vars for each player, 1,2,3.

When u press btn 1 to make player 1 active,
Just make …
ActivePlayer = player1;

And have all your controls, walk, jump etc, only access activePlayer.

Thank you so much…this is a good start, now in your first line of code: “var activePlayer : GameObject” what do I change the “GameObject” to? Do I leave it “GameObject” or should it be something? Also, I am using Unity’s Free Move Controller script to help me move my character around how do I make that so that it only moves the currently selected player?