title: Why constructor is used instead of functions?
body: <p>This is a very basic question, I searched it but i just want to ask this community that we have both <code>constructors</code> and <code>methods</code>. But normally we use constructor to initialize the variables instead of the methods. I think that both can be used to initialize variables. So what is the basic difference between both. Is there any solid reason?
  this is a very basic question so bear it for sake of beginner level.
  thanks in advance..</p>