What is the difference between Function and Method? - ProProfs Discuss
Advertisement

What is the difference between Function and Method?

Asked by R. Jones, Last updated: Apr 15, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

I. Muller

I. Muller

I. Muller
I. Muller, Math Professor, North Carolina

Answered Aug 06, 2019

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 meaning of the function and the method can be different depending on how they will be used. If
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.

upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.