About 5,840,000 results
Open links in new tab
  1. What's the difference between a method and a function?

    Oct 1, 2008 · A method is on an object or is static in class. A function is independent of any object (and outside of any class). For Java and C#, there are only methods. For C, there are only …

  2. oop - What is Method, Property and Function? - Stack Overflow

    Method is a named action which can be applied to the object. Property is a named value, which the object has. For example, object Human has the property 'Age'. function is a more general …

  3. c - method vs function vs procedure vs class? - Stack Overflow

    Jun 14, 2010 · 1 Function, method and procedure are homogeneous and each of them is a subroutine that performs some calculations. A subroutine is: a method when used in Object …

  4. What is a "method" in Python? - Stack Overflow

    88 Can anyone, please, explain to me in very simple terms what a "method" is in Python? The thing is in many Python tutorials for beginners this word is used in such way as if the beginner …

  5. Methods vs Constructors in Java - Stack Overflow

    Sep 27, 2013 · I have just started programming with Java. The text we use is lacking when talking about methods and constructors. I'm not sure what a method or a constructor is exactly and …

  6. How many lines of code should a function/procedure/method have?

    However many lines of code it takes to do that one thing is how many lines it should have. If that "one thing" can be broken into smaller things, each of those should have a method. Good …

  7. language agnostic - What is a callback function? - Stack Overflow

    May 5, 2009 · In computer programming, a callback is a reference to executable code, or a piece of executable code, that is passed as an argument to other code. This allows a lower-level …

  8. oop - What is method overloading? - Stack Overflow

    Mar 28, 2013 · I've found resources that say method overloading is the ability for a language to use the same method with a different outcome, depending on context. Somehow, when I read …

  9. What is meant by the term "hook" in programming?

    Jan 21, 2009 · 0 What is meant by the term "hook" in programming? A really good answer to this question requires detailed specification of the entire context associated with the term …

  10. What's a good name for a method that gets or creates an object?

    Jul 6, 2010 · GetOrCreate() or Get(Options.CreateIfMissing) is a good hint to the caller. (The behaviour should of course be noted in the documentation, but it's good to use a method …