Question: On which line ( s ) is the setter function? ` ` ` 1 2 public class XYZ { 3 4 private int a; *

On which line(s) is the setter function?
```
1
2 public class XYZ {
3
4 private int a;
* private double b;
*
7\ominus public XYZ(){
a =0;
b =1.23;
}
public XYZ(int n1, double n2){
a = n1;
b = n2;
}
public int getA(){return a;}
public void setB(double b){this.b = b;}
}
```
Select one
A.2
B.4 and 5
c.\(7-10\)
D.\(11\cdot 14\)
E.15
F.16
On which line ( s ) is the setter function? ` ` `

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!