True or False: in the following code, the variable
age is accessible within the method.
public class AgingJeroo
{
private int age;
public void increase()
{
age = age + 1;
}
}
True: since age is declared as a field, it is accessible everywhere within the class.
- True: since age is declared within the method, it is accessible within the method.
- False: since age is private, it cannot be accessed by methods.
- False: since age is declared as a field, it cannot be accessed by methods.
There are no hints for this question