Create the class file-main method


Discussion:

Q: Access the below CustomerM.java file. Write the class file that is needed to be run with this code, that is, write the class file that is implied by the main method.

public class CustomerM
{
public static void main(String[] Jim)
{
Customer cust1 = new Customer("Joe", 19);
System.out.println(cust1.name);
System.out.println(cust1.age);
cust1.name = "Jim";
cust1.age = 20;
System.out.println(cust1.name);
System.out.println(cust1.age);
}
}

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Create the class file-main method
Reference No:- TGS01934471

Now Priced at $25 (50% Discount)

Recommended (99%)

Rated (4.3/5)