@return Summary Documents the return value of a function or method. Syntax @return description Parameters description The documentation for the function or method return value. Description The @return tag is used for documenting the return value for a function or method. It is not necessary to include information about the return type. The return type is automatically included in the generated documentation. Examples Documenting an 'add' Method 123456789101112class Calculator{ /** * Adds two numbers together and returns the result. * * @return The result of the two numbers being added together. */ int add(int x, int y) { return x + y; }} See Also @param @overload Share HTML | BBCode | Direct Link