Question: **Using Java** Which line of code contains the constuctor in the example below? public class Account { private String (name); public Account (String name) {
**Using Java**
Which line of code contains the constuctor in the example below?
public class Account {
private String (name);
public Account (String name) {
this.name = name;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
