Solved

Consider This Method Comment

Question 25

Multiple Choice

Consider this method comment. Which of the following options is recommended in your textbook?
/**
Computes the area of a cuboid.
@param width the width of the cuboid
@return the area of the cuboid
*/
Public static double area(double width, double height,
Double length)
{
Double result = width * height * length;
Return result;
}


A) The parameter "width" need not be described.
B) The first line of the comment should be omitted because it is obvious.
C) All of the parameters should be described.
D) The @return clause of the comment should be omitted because it is obvious.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents