Answer on Question #48021, Programming, Java | JSP | JSF
Problem.
Give an example of a program fragment in which the same name is used to describe two different variables.
Solution.
public class Test {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}http://www.AssignmentExpert.com/
Comments