Constant functor is a functor that sends all morphisms to identity and all objects to a specific object X:

It is used to define limits, you can read about it in Push it to the limit article.