EPAM Systems interview question

What is a constructor ? Tell me about the Memory allocation during object creation