How to attach Animation to other objects in script?

How to attach Animation to other objects in script?

gameObject.AddComponent(typeof(Animation));