Bentley Systems interview question

what is a constructor in c++? difference between stack and heap? difference between pointer and reference?