how to use gameobject.active in 4.0

how to use gameobject.active in 4.0 .im not getting active in unity 4.o any relevant code?

Because it is not used in 4.0, read the release notes.

You need to use SetActive, activeSelf and activeInHeirachy

gameObject.active = true;

is now

[gameObject.SetActive(true);
gameObject.SetActiveRecursively(true);

is also…

gameObject.SetActive(true);