Question: what is difference between normal function and constructor?
Answer: Following are the difference between constructor and method. Constructor is used to initialize an object whereas method is used to exhibits functionality of an object. Constructors are invoked implicitly whereas methods are invoked explicitly. ... Method name should not be of the same name as that of class.