Question: what is the difference between an object and a function?
Answer: a function creates for every input a deterministic output without any side effects like database access, printing something etc. an object is an instance of a datacontainer allowing to do some manipulations on it. you can ask the object for values.