Question: what is the difference between object and function?
Answer: An object is a collection of functions and data. A function is a collection of commands and data. ... Traditionally in Object oriented Programming, when a function is part of an object, it is called a method. But a method can be more than a function, a method is a set of functionality that acts to enhance an object.