what is the use of constructors
This is an extremely basic question that is a fundamental concept of OOP. I would suggest doing quite a bit of research on this yourself, as there are references and articles created specifically to answer this question. If you can't understand this after asking
Wikipedia and
Google, then by all means post your
specific question here again.