Ask Question
19 January, 10:01

What is the relationship between a method and a function

+3
Answers (2)
  1. 19 January, 10:10
    0
    Method and a function are the same, whit the different terms. A method is a procedure or function in object - oriented programming. A function is a group of reusable code which can be called anywhere in your program. This eliminates the need for writing the some code again and again.
  2. 19 January, 10:19
    0
    A function is a piece of code that is called by name. It can be passed data to operate on (i. e. the parameters) and can optionally return data (the return value). All data that is passed to a function is explicitly passed. A method is a piece of code that is called by a name that is associated with an object
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is the relationship between a method and a function ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers