A constructor is a special type of method that is used to create an object and initialize its data members. A method is a function that is associated with an object and can be called on an object to perform a specific action.