Question: 9 . 6 . 2 : Constructor overloading. ite a second constructor as indicated. Sample output: er 1 : Minutes: 0 , Messages: 0 er
: Constructor overloading.
ite a second constructor as indicated. Sample output:
er: Minutes: Messages:
er: Minutes: Messages:
arn how our autograder works
public class Phoneplan
private int freeminutes;
private int freemessages;
public Phoneplan
freeminutes ;
freemesages ;
FIXME: Create a second constructor with numvinutes and numMessages parameters.
Y Your solution goes here
public void print
system.out.printlnMinutes: freeMinutes Messages: freeMessages;
end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
