0
/ 1.0
For this problem assume you have access to a Person class defined here:
public class Person{ public String name; private int age; public...
For this problem assume you have access to a Person class defined here:
public class Person{
public String name;
private int age;
public void setAge(int a){
age = a;
}
public void setName(String n){
name = n;
}
}
Below you've been given a method and a Person object has been created. Using the methods defined above, set age to 42 and name to "Peter".
Your feedback will appear here when you check your answer.