Given the following code snippet:
public class Camera Line 1
{ Line 2
private double zoom; Line 3
private double lensSpeed; Line 4
public double Zoom Line 5
{ Line 6
get Line 7
{ Line 8
return zoom; Line 9
} Line 10
} Line 11
public Camera ( ) Line 12
{ Line 13
} Line 14
public Camera (double zCapacity, Line 15
double ls) Line 16
{ Line 17
int xValue = 2; Line 18
zoom = zCapacity * xValue; Line 19
lensSpeed = ls; Line 20
} Line 21
public double GetLensSpeed( ) Line 22
{ Line 23
return lensSpeed ; Line 24
{ Line 25
Identify the following items by line number:
a. method headings
b. property identifier
c. default constructors
d. formal parameters
e. local variables
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.