Tag: methods

5595 Is Java "pass-by-reference" or "pass-by-value"? 2008-09-02T20:14:29.270

2854 What is the difference between @staticmethod and @classmethod? 2008-09-25T21:01:57.843

1498 What's the difference between a method and a function? 2008-09-30T23:45:10.007

1378 Does Java support default parameter values? 2009-06-15T18:04:28.277

654 Is arr.__len__() the preferred way to get the length of an array in Python? 2009-02-05T21:26:47.217

545 Pass Method as Parameter using C# 2010-01-17T21:01:01.313

523 Adding a Method to an Existing Object Instance 2008-08-04T02:17:51.780

461 Why are exclamation marks used in Ruby methods? 2009-03-04T20:02:28.443

430 What is the difference between class and instance methods? 2009-06-27T20:48:43.870

400 Getting the name of the currently executing method 2009-01-14T12:20:39.497

358 List view getListItemXmlAttributes method fails with child publication items 2012-06-22T22:58:52.437

347 Why do some functions have underscores "__" before and after the function name? 2011-12-31T18:57:01.797

311 How to find where a method is defined at runtime? 2008-10-06T18:44:24.610

284 When is the finalize() method called in Java? 2010-03-24T09:24:19.723

237 Cannot refer to a non-final variable inside an inner class defined in a different method 2009-08-19T13:12:38.117

223 Difference between method and function in Scala 2010-03-27T12:06:16.807

210 Why doesn't Mockito mock static methods? 2010-12-19T09:25:50.550

207 How to display all methods of an object? 2010-02-13T15:12:06.797

190 How to call multiple JavaScript functions in onclick event? 2010-10-11T23:44:39.207

181 Why does Python code use len() function instead of a length method? 2008-10-25T22:37:03.223

181 Should private helper methods be static if they can be static 2009-02-11T21:24:32.597

177 Final arguments in interface methods - what's the point? 2011-03-21T15:53:47.017

174 Method Syntax in Objective C 2009-03-25T20:01:24.057

170 Reflection: How to Invoke Method with parameters 2010-02-04T19:02:49.200

162 How do I pass multiple parameters in Objective-C? 2009-04-06T18:41:36.877

159 When is a Java method name too long? 2010-02-09T16:58:38.403

158 What's a "static method" in C#? 2010-11-08T13:09:18.500

157 Can I invoke an instance method on a Ruby module without including it? 2008-11-26T23:03:37.793

146 Why can't I declare static methods in an interface? 2008-08-22T05:16:43.837

143 Is it wrong to use Deprecated methods or classes in Java? 2010-05-31T07:05:07.500

142 Python __call__ special method practical example 2011-04-28T20:54:22.070

141 Java synchronized static methods: lock on object or class 2009-01-13T00:48:39.333

133 How to check whether an object has certain method/property? 2011-02-25T06:53:09.930

132 unbound method f() must be called with fibo_ instance as first argument (got classobj instance instead) 2010-12-17T17:31:23.050

131 Are there any Java method ordering conventions? 2011-01-12T11:26:20.110

130 What does 'public static void' mean in Java? 2010-03-05T21:27:43.060

129 Why is a static method considered a method? 2015-05-22T17:00:23.063

126 Why does this C++ snippet compile (non-void function does not return a value) 2013-12-16T15:16:54.140

123 In Java, how do I call a base class's method from the overriding method in a derived class? 2008-11-06T14:45:08.593

123 Why does the Scala compiler disallow overloaded methods with default arguments? 2011-01-10T22:09:49.700

120 Passing an Array as Arguments, not an Array, in PHP 2009-04-13T14:55:14.853

119 What does .class mean in Java? 2013-02-26T00:01:42.453

117 Properties vs Methods 2009-03-02T08:24:47.687

113 Java variable number or arguments for a method 2010-02-25T01:24:35.147

111 What's wrong with using $_REQUEST[]? 2010-01-26T20:46:22.230

106 Android: How can I pass parameters to AsyncTask's onPreExecute()? 2010-06-19T09:23:15.863

106 class method generates "TypeError: ... got multiple values for keyword argument ..." 2013-09-23T00:08:45.833

104 Behaviour of final static method 2009-11-16T17:43:04.227

103 new keyword in method signature 2009-06-18T18:12:05.693

102 How to name factory like methods? 2010-07-30T05:10:53.240

101 Can overridden methods differ in return type? 2013-02-04T20:17:28.143

100 Should C# methods that *can* be static be static? 2009-04-08T20:49:05.163

100 Python: Bind an Unbound Method? 2009-06-18T21:33:18.947

100 Why are C# interface methods not declared abstract or virtual? 2010-09-01T19:21:36.467

99 Passing a method as a parameter in Ruby 2009-02-07T00:02:01.443

97 How to detect unused methods and #import in Objective-C 2009-09-21T21:25:18.450

97 Optional Methods in Java Interface 2012-05-13T14:47:36.030

95 Finding occurrences of a character in a string with Ruby 2011-03-23T18:02:26.310

93 How to get instance variables in Python? 2008-09-20T19:30:24.580

93 In Python, when should I use a function instead of a method? 2011-11-13T00:38:33.400

92 How to override to_json in Rails? 2010-04-03T18:49:09.927

92 How to call a parent method from child class in javascript? 2012-08-07T22:21:49.770

91 Declaration of Methods should be Compatible with Parent Methods in PHP 2010-06-25T03:37:54.183

90 X does not implement Y (... method has a pointer receiver) 2016-11-26T21:24:32.380

89 Calling a function within a Class method? 2009-11-12T20:32:31.800

89 Passing just a type as a parameter in C# 2012-06-08T20:20:26.220

89 Computed read-only property vs function in Swift 2014-06-04T10:39:55.260

87 Usage of @see in JavaDoc? 2011-02-16T00:45:18.480

86 Why not abstract fields? 2010-02-05T22:49:07.350

86 Large difference in speed of equivalent static and non static methods 2015-05-26T09:40:33.327

83 How to add a new method to a php object on the fly? 2010-05-30T08:49:12.320

82 How do I call a dynamically-named method in Javascript? 2009-06-09T12:18:55.507

81 Defining an abstract class without any abstract methods 2011-01-27T00:11:57.733

81 Verify a method call using Moq 2012-02-03T23:01:32.340

79 Is it possible to have Methods inside Methods? 2011-02-01T15:07:13.767

79 Can two Java methods have same name with different return types? 2011-04-06T04:25:29.247

78 Can a C++ enum class have methods? 2014-01-22T23:04:11.077

77 How to get an object's methods? 2011-04-30T15:14:22.930

77 Is there still a use for inline? 2015-04-22T11:33:55.473

76 Naming conventions for java methods that return boolean(No question mark) 2010-10-06T15:48:26.083

73 What does this boolean "(number & 1) == 0" mean? 2013-02-16T00:43:23.173

73 Netbeans 7.4 introduces "10 lines max" per method rule. Where does this rule come from? 2013-08-09T12:56:29.060

73 Method vs Computed in Vue 2017-06-04T04:50:08.597

71 Python safe method to get value of nested dictionary 2014-09-14T13:11:40.087

70 when to pass a parameter and when to use an instance variable 2008-12-06T10:30:08.123

70 Why isn't calling a static method by way of an instance an error for the Java compiler? 2009-03-04T13:05:38.523

70 Objective C calling method dynamically with a string 2010-12-15T05:05:58.110

70 Javascript dynamically invoke object method from string 2012-03-24T19:51:43.363

69 Method names for getting data 2010-01-26T18:57:39.367

68 java how expensive is a method call 2011-06-27T15:12:47.787

68 To use a read-only property or a method? 2013-05-30T06:50:37.967

67 How does a Python set([]) check if two objects are equal? What methods does an object need to define to customise this? 2010-10-15T12:42:36.557

67 Should I mark all methods virtual? 2013-01-22T03:54:56.427

66 When does it pay off to use S4 methods in R programming 2010-08-30T16:14:25.683

66 Howto get all methods of a python class with given decorator 2011-05-06T11:23:38.853

65 How to call a method daily, at specific time, in C#? 2010-07-14T04:14:29.233

65 Making java method arguments as final 2010-11-12T07:38:39.743

65 undefined method `devise_for' in rails 2011-01-26T22:43:32.717

65 Dynamically replace the contents of a C# method? 2011-09-04T12:07:51.160