Pregunta de entrevista de Tata Consultancy Services

What is constructor? give an example.