RonWensley
asked on
Theory Question
Greetings,
I am working through someone else's code and learning as I go. I came across this pice of code and I wonder why would I write this?
private static int EXPECTED_LENGTH_OF_BYTE_AR RAY = 998;
public static int expectedLengthOfBHMConfigu rationArra y
{
get
{
return EXPECTED_LENGTH_OF_BYTE_AR RAY;
}
}
Instead of calling expectedLengthOfBHMConfigu rationArra y and having a 998 returned would it not be more efficient to reference the variable EXPECTED_LENGTH_OF_BYTE_AR RAY directly?
I am working through someone else's code and learning as I go. I came across this pice of code and I wonder why would I write this?
private static int EXPECTED_LENGTH_OF_BYTE_AR
public static int expectedLengthOfBHMConfigu
{
get
{
return EXPECTED_LENGTH_OF_BYTE_AR
}
}
Instead of calling expectedLengthOfBHMConfigu
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER