Answer:
public PhonePlan(int numMinutes, int numMessages) {
freeMinutes = numMinutes;
freeMessages = numMessages;
}
Step-by-step explanation:
Create a constructor that takes two parameters, numMinutes and numMessages
Inside the constructor, set numMinutes to freeMinutes and numMessages to freeMessages.
With this constructor, we are able to create PhonePlan objects that take parameters and different options as seen in the output. We can set any values for minutes and messages in the constructor.