Define the missing method. Use “this” to distinguish the local member from the parameter name.
// ===== Code from file CablePlan.java =====
public class CablePlan {
private int numDays;
// FIXME: Define setNumDays() method, using “this” implicit parameter.
public void setNumDays(int numDays) {
this.numDays = numDays;
}
public int getNumDays() {
return numDays;
}
}
// ===== end =====
// ===== Code from file CallCablePlan.java =====
import java.util.Scanner;
Define the missing method. use “this” to distinguish the local member from the parameter name.