Question: what is the difference between method and constructor?
Answer: 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. ... Constructor should be of the same name as that of class. Method name should not be of the same name as that of class.