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