method-declaration

Java "params" in method signature?

In c# if you want a method to have an indeterminate number of parameters you can make the final parameter in the method signature a "params" which to the method looks like an array but allows anyone using the method to put in as many parameters of that type as the want. I'm fairly sure java supports similar behaviour, but I cant find ou...

Objective-C - How to implement an array of pointers in a method declaration

Ok, if you take a look at my two previous posts (Link #2 in particular), I would like to ask an additional question pertaining to the same code. In a method declaration, I am wanting to define one of the parameters as a pointer to an array of pointers, which point to feat_data. I'm sort of at a loss of where to go and what to do except t...

C++/CLI : How to override Equal method of Object class

I am a newbie to C++/CLI and is having some problems trying to override the Equal method of the base Object class. I get the following compilation warning error for the following code. How should this be corrected? Warning 1 warning C4490: 'override' : incorrect use of override specifier; 'Test::Sample::Equal' does not match a base ref ...

What do the plus and minus signs mean in Objective C next to a method?

I am very new in objective c and in xcode. I would like to know that what are the + and - signs next to a method definition mean. - (void)loadPluginsAtPath:(NSString*)pluginPath errors:(NSArray **)errors; ...