Ask Question
16 June, 23:06

What is the relationship between a method and a function

+1
Answers (2)
  1. 17 June, 01:14
    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. 17 June, 02:59
    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?
Get an answer to your question ✅ “What is the relationship between a method and a function ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers