A method is code that performs a task and is associated with a class or an object.

learn more… | top users | synonyms (1)

0
votes
0answers
4 views

MVC Code Structure - calling model methods

I have a basic swing application that follows the MVC structure and a question that relates to the methods in the model and how I call them. Before I ask my question I will provide some background ...
-3
votes
1answer
16 views

best method download for download app

I want to make small download app what is best download method ? I want to multi download & show progress for one of downloads & user can cancel one of downloads
0
votes
2answers
32 views

Why we must handle exception for method not throwing exceptions?

Given public class ToBeTestHandleException{ static class A { void process() throws Exception { throw new Exception(); } } static class B extends A { void process() { ...
5
votes
3answers
50 views

Extending inheritance of `this` to methods / properties of an `object`

I'm not sure if I phrased the question title correctly; please consider the following to clarify... (function() { var foo = { bar: function() { // Is it possible to reference ...
1
vote
2answers
36 views

Controller Methods with same name

I have this method who call 2 others methods but i've an error when a execute that code. public ActionResult CreateOrder(string action, string type) { /*Some Code*/ ...
0
votes
2answers
17 views

User-defined functions vs. Built-in / Pre-defined functions

Which is more preferable? between the two? like for example in sorting arrays, would it be more practical to use pre-defined sorting function than creating your own sorting function? What are the ...
0
votes
0answers
16 views

using method in meteor collection

I try to use a collection of objects which has some methods. ie : Targets = new Meteor.Collection("targets"); Targets.insert({ id : 0, title : function(){ if(false){ ...
-2
votes
3answers
33 views

how do i access a specific point of an array form another method

i was wondering, if i make a method that returns an array. how can i late on access a specific point in that array in the main or another method? for instance: public static int[] ...
-2
votes
1answer
42 views

Getting an Instance Method to return a string [duplicate]

This should be simple but I'm clearly doing something painfully wrong. I want to write a test method that returns a string. In my classTest.h I have @interface classTest : NSObject - (NSString ...
0
votes
0answers
10 views

Switch Statement Inline code vs Method

I have an ashx asp.net web service, this service contains a switch statement with 4 cases. Each of these cases will execute ~50 lines of code that will get information a database and return that ...
0
votes
0answers
15 views

VB.Net - Using reflection to refer to methods outside of classes

I'm trying to create a program that will execute commands by dynamically invoking methods using the name of a sub provided by the user. With help, I've managed to get it working using a dictionary of ...
0
votes
2answers
50 views

string method exact text

So, I am brand spanking new to JavaScript. I am practicing right now with a Codeacedemy tutorial, and it had me create a program that finds my name in a string of text. But, I realized that if I use a ...
0
votes
0answers
4 views

Clover : Statement and Method codecoverage

In the nice html code coverage that clover generates , I did not see any specific code coverage for method and statement. I just have one number that is overall code coverage. I believe we would like ...
2
votes
4answers
72 views

PHP: method with same name in different classes not working

Same function name in different isolated classes is not allowed? What am I doing wrong? I reduced my real code to the minimum required to make some test. Here it is: <?php ...
1
vote
2answers
54 views

communication between run() method and other class method (java threads)

i have task to do and i'm little stuck. I have to make 4 services (A,B,C,D). Every service should have his own thread. They should start in sequence and run. If service A starts then can start service ...

1 2 3 4 5 500
15 30 50 per page