How to replace public GameObject player; with GameObject.Find("player"); in C#

Heres the script, i need to access the player by name, rather than variable.
using

public class example : MonoBehaviour {
    void Start() {
        GameObject go = GameObject.Find("SomeGuy");

how do i do it? i dont know c# but im stuck with this code so i have to do it.

http://pastebin.com/tpCxF1re

That’s how you do it. What’s the problem?

public class x : y {
  GameObject player;
  
  void Start() {
    player = GameObject.Find("SomeGuy");
  }
}

it works now. i just added the void start part.

i dunno it was confusing before.