Question: 9 . 6 . 2 : Constructor overloading. ite a second constructor as indicated. Sample output: er 1 : Minutes: 0 , Messages: 0 er

9.6.2: Constructor overloading.
ite a second constructor as indicated. Sample output:
er1: Minutes: 0, Messages: 0
er2: Minutes: 1000, Messages: 5000
arn how our autograder works
public class Phoneplan {
private int freeminutes;
private int freemessages;
public Phoneplan(){
freeminutes =0;
}
freemes5ages =0;
// FIXME: Create a second constructor with numvinutes and numMessages parameters.
Y* Your solution goes here */
public void print(){
}
system.out.println("Minutes: "+ freeMinutes +", Messages: "+ freeMessages);
3
???===+= end ===+=
 9.6.2: Constructor overloading. ite a second constructor as indicated. Sample output:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!