I\'ve made it fairly far into my Java course with a general understanding of how
ID: 647320 • Letter: I
Question
I've made it fairly far into my Java course with a general understanding of how things work, now I am becoming lost. Any guidance on this would be greatly appreciated.
write a Java method that includes the following:
At least two parameters that are passed into the method, including one that is numeric
At least one numeric value that will be returned by the method
A variable that is legally declared twice (with the same name both times) within the method
Then, explain the function of each parameter and variable you included in your selected method.
Below is the method I chose.....I need to build off of this for my new assignment
Method
New Customer Info
Parameters
String firstName
String lastName
String Emergency Contact
String physical address
String Other approved account users
Int Birth Date
Int SSN
Explanation / Answer
public class Person{
private String firstname;
private String lastname;
private String EmergencyContact;
private String address;
private Int BirthDate;
private Int SSN;
public person(String firstname,String lastname,String EmergencyContact,String address,Int BirthDate,Int SSN)
{
this.firstname=firstname;
this.lastname=lastname;
this.EmergencyContact=EmergencyContact;
this.address=address;
this.BirthDate=BirthDate;
this.SSN=SSN;
public String firstname()
{
return firstname;
}
public String lastname()
{
return lastname;
}
public String EmergencyContact()
{
return EmergencyContact;
}
public String address()
{
return address;
}
public Int BirthDate()
{
return BirthDate;
}
public Int SSN()
{
return SSN;
}
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.