A method is a procedure or function that is a part of an object, and which cannot be assigned a value. A function that is part of an object that can be assigned a value is called a property.