Index of /~lucia/courses/ITI1121-15/labs/solutions/t02
Name Last modified Size Description
Parent Directory -
TestRational.java 11-Jan-2015 16:44 247
StudentInfo.java 11-Jan-2015 16:44 1.0K
TestAll.java 11-Jan-2015 16:44 1.6K
Rational.java 11-Jan-2015 16:44 1.9K
Utils.java 11-Jan-2015 16:44 2.2K
TestFindAndReplace.java 11-Jan-2015 16:44 7.2K
Referring to the class Counter below, the keyword this can be omitted without affecting the compilation or execution of the program.
True or False
public class Counter {
private int value = 0;
public Counter( int initialValue ) {
this.value = initialValue;
}
}
The answer is true. The name of the instance variable value is not
conflicting with the name of the parameter.