Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started