Question: For the following code, which statement is NOT true? public class Sphere { private double radius; public double x ; private double y ; private
For the following code, which statement is NOT true?
public class Sphere
private double radius;
public double ;
private double ;
private double ;
The field is available to code written outside the Sphere class.
The radius, and fields are members of the Sphere class.
The field is available to code that is written outside the Sphere class.
The radius field is not available to code written outside the Sphere class.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
