The meaning of the function and the method can be different depending on how they will be used. If these two terms will be used for coding, then the function is known to be the value of the property. This means that if you need to name a code, that will be called function. It can also provide a return value if needed. The method is known to be a piece of code that is named according to its relation to the object that is being coded.
The method will be able to work on the data that is placed within the class. Take note that in order to understand the differences between the two further, you need to do more research as the descriptions are the simplified versions. Coding will come with a lot of information and knowing the difference between method and function will surely help.