That depends on the programming language. In C, and languages derived from C (including Java), you usually declare the return value as "void", for example:
void MyMethod(int par1, int par2) {
// Some commands here
}
A method that return a value should have a return statement. The method signature should indicate the type of return value. While in the case of a method that does not return a value should not have a return statement and in the signature, the return type is void. When using a method that doesn't return a value, a programmer can not get a value from that function, but instead, it can only change variable values and run other methods.
You cannot create methods inside a constructor
No. void is not a data type. It is mandatory for all java methods to return something and if it is not going to return anything, we have to mark the method with a "void" return type to let the JVM know that it must not expect anything from the method.
It is a syntax error, because a value returning method must return a value, and not writing a return statement with a value is tantamount to returning without a value.
return
the return type is void
A method that return a value should have a return statement. The method signature should indicate the type of return value. While in the case of a method that does not return a value should not have a return statement and in the signature, the return type is void. When using a method that doesn't return a value, a programmer can not get a value from that function, but instead, it can only change variable values and run other methods.
The Payback method is one of the investment appraisal methods. Other methods to appraise investments are the Average Rate of Return and the Net Present Value method.
Factory methods are merely a convention whereby static methods in a class return an instance of that class. The InetAddress class has no visible constructors. In InetAddress the 3 factory methods getLocalHost, getByName, getAllByName can be used to create instances of InetAddress.
You cannot create methods inside a constructor
internal rate of return and net present value
Shareholder value directly relates to increasing the value of the company through earnings, brand improvement and distributions of profits. To create or increase shareholder value a company needs to increase the direct and intrinsic worth of the company. Ultimately, with the idea to create a return on an shareholder's investment in the company/corporation.
The algorithm can be easily stated as follows: if A is greater than B then return A, otherwise return B.
property is like variable (can able to set and get value at runtime) but method is like a function which will return the value at runtime so the only different is property will hold the value untill the new value will set into that.
No. void is not a data type. It is mandatory for all java methods to return something and if it is not going to return anything, we have to mark the method with a "void" return type to let the JVM know that it must not expect anything from the method.
function myFunction($parameter1, $parameter2) { // this function's code goes here return $returnValue; // the value returned }
http://wiki.answers.com/Q/What_are_the_advantages_and_disadvantages_associated_with_Net_present_value_and_internal_rate_of_return_as_methods_of_investment_appraisal pls. what is answer provided for the qustion above