Zensar Technologies Interview Question

What is a constructor used for?