How to access a class from another game object

Lacking some basic Unity C# knowledge, please help.

How do I access a script class on another object?

How do I include another class in C# with using?

I have a chicken game object that has this C# script on it.

using UnityEngine;
using System.Collections;

public class ChickenBehaviour : MonoBehaviour {
    public float speed = 8f;
}

In another object, how can I get the ChickenBehaviour class and see it’s members?

using UnityEngine; 
// ??????? how should the using be done ???????
using ChickenBehaviour;  // this fails

public class PlayerController : MonoBehaviour 
{ 
  void Update ()	{
    if (Input.GetButtonDown("Fire1")) {
      Ray theRay = playerCamera.ScreenPointToRay(Input.mousePosition);
      RaycastHit hit;
      bool mouseHitSomething = false;
      if (Physics.Raycast (theRay, out hit)) {
        // ??????? how should the class be accessed ???????
        // don't know if this fails, can't get past using
        ChickenBehaviour behave = hit.transform.gameObject.GetComponent(ChickenBehaviour);
        Debug.Log("clicked on chicken with speed " + behave.speed);
    }
  }
}

Maybe this helps…

public GameObject playerObj;

void Start () {
		// Find the Object with tag "player" and get data from it
		playerObj = GameObject.FindGameObjectWithTag("Player");
		// Get
		Player playerScript = (Player)playerObj.GetComponent(typeof(Player)); 
		oldScore = playerScript.score;
		username = playerScript.Username;
	}

With the chicken object selected, tag it (“Add tag…”) in the inspector. It should be “untagged” by default.

Thanks, that’s it.

The solution for my code example in C# is:

using UnityEngine; 
// no using clause is required, the ChickenBehaviour class is available 

public class PlayerController : MonoBehaviour 
{ 
  void Update ()   { 
    if (Input.GetButtonDown("Fire1")) { 
      Ray theRay = playerCamera.ScreenPointToRay(Input.mousePosition); 
      RaycastHit hit; 
      bool mouseHitSomething = false; 
      if (Physics.Raycast (theRay, out hit)) { 
        ChickenBehaviour behave = hit.transform.gameObject.GetComponent(typeof(ChickenBehaviour)) as ChickenBehaviour;

        Debug.Log("clicked on chicken with speed " + behave.speed); 
      } 
    }
  }
}

It would be nice if this information was available in documentation for C#.