Solved

For the Following Code, Which Statement Is Not True

Question 28

Multiple Choice

For the following code, which statement is not true?
Public class Sphere
{ private double radius;
Public double x;
Private double y;
Private double z;
}


A) The z field is available to code that is written outside the Sphere class.
B) The radius field is not available to code written outside the Sphere class.
C) The radius, x, y, and z fields are members of the Sphere class.
D) The x field is available to code that is written outside the Sphere class.

Correct Answer:

verifed

Verified

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

Related Questions