Question: Given the following code ( which is the same as in Q 1 ) : public class Person { private int age; public Person (
Given the following code which is the same as in Q:
public class Person
private int age;
public Person
age ;
public int getAge
return age;
public void getOlderByYearsint years
age age years;
years years ;
POINT A
public class Main
public static void mainString args
Person jean new Person;
int ageAmount ;
POINT B
jean.getOlderByYearsageAmount;
POINT C
Part
When we
run the Java program above, what is the value of years at Point C
a expression does not compile at Point C
b
c
d
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
