Question: CHALLENGE ACTIVITY 6 . 1 2 . 1 : Method name overloading. 5 2 8 0 4 0 . 3 4 8 9 5 2

CHALLENGE
ACTIVITY
6.12.1: Method name overloading.
528040.3489528 qx3zqy7
Fill in the parameters in the second method header for the overloaded method printAge(). The number, type, and order of the method parameters are indicated in the method call from main().
Ex: If the input is 60 Tyrone, then the output is:
Tyrone is 60 years old
Terrell is 35 years old
import java.util.Scanner;
public class MultipleAges {
public static void,printAge(int age, String name){
}
System.out.println(name +" is "+ age + "years old");
public static void printAge( your code goes here */){
}
System.out.println("Terrell is "+ customAge + "years old");
public static void main(String[] args){
Scanner scnr = new Scanner(
System.in);
int age;
String name;
age =scnr.nextInt();
 CHALLENGE ACTIVITY 6.12.1: Method name overloading. 528040.3489528 qx3zqy7 Fill in the

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!