Method: It a function which is the member of a class. Methods consists of statements that may or may not return an output.
Constructor: It is a special type of method that has the same name the class name. These methods are used to initialize an object's state.