Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 ===+=
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions