ما الذي يسمى docstrings في Java؟
-
03-10-2019 - |
سؤال
قبل طرق جافا لدينا شيء مثل:
/**
* 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) {
...
}
هل هذا له اسم (مثل docstrings في بيثون)؟
نصائح أخرى
نعم ، يطلق عليه جافادوك.
لا تنتمي إلى StackOverflow