Quali sono docstring chiamati in java?
-
03-10-2019 - |
Domanda
Prima di metodi Java abbiamo qualcosa di simile:
/**
* Takes a number and returns its square root.
* @param x The value to square.
* @return The square root of the given number.
*/
public float getSqrt(float x) {
...
}
Questo ha un nome (come docstring in Python)?
Altri suggerimenti
Yup, si chiama javadoc .
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow