Function and Method Differences

What is the difference between function and method in C, Objective C, and JAVA?

Questions by Anood Hamadeen

Showing Answers 1 - 3 of 3 Answers

anil

  • Nov 23rd, 2012
 

Functions have independent existence means they are defined outside of the class e.g. in C main() is a function while methods do not have independent existence they are always defined inside class e.g. main() in Java is called method.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions