In object-oriented programming (OOP), a procedure is associated with a message and an object. An object consists of data and behaviour. The data and behavioUr comprise an interface, which specifies how the object may be utilized by any of the various consumers of the object.