View Poll Results: How do you call void foo()
- Voters
- 9. You may not vote on this poll
-
January 5th, 2009, 04:32 AM
#14
Re: What void foo() is really? - a Method? OR a Function?
 Originally Posted by laserlight
However, that does not really answer thomus07's question: "what factor separates a method and a function"?
The decisive factor is how the function is used. If it defines object behaviour it's a method (according to the OO terminology).
In my view in C++ it's questionable whether static functions and private function should be called methods. In Java they are but that's probably only because every function is called a method there.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|