Cognizant interview question

What is a decorator, what is iterator.