Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CHALLENGE ACTIVITY 7 . 9 . 2 : Constructor overloading. Write a second constructor as indicated. Sample output: User 1 : Minutes: 0 , Messages:
CHALLENGE
ACTIVITY
: Constructor overloading.
Write a second constructor as indicated. Sample output:
User: Minutes: Messages:
User: Minutes: Messages:
Learn how our autograder works
I Code from file PhonePlan. java
public class PhonePlan
private int freeMinutes;
private int freeMessages;
public PhonePlan
freeMinutes ;
freeMessages ;
FIXME: Create a second constructor with numMinutes and numMessages parameters.
V Your solution goes here
public void print
System.out.printlnMinutes: freeMinutes Messages: freeMessages;
Feedback?
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