how to hide and show object in unity script

C#
 GameObject cat; 
 cat.SetActive(false); // false to hide, true to show
Source

Also in C#: