SLB interview question

What is a constructor in object-oriented programming?