Question #48021

Give an example of a program fragment in which the same name is used to describe two different variables.
1

Expert's answer

2014-10-22T14:08:59-0400

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/

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS