123456789101112131415



Question 1: Given:
package geometry;
public class Hypotenuse {
public InnerTriangle it = new InnerTriangle();
class InnerTriangle {
public int base;
public int height;
}
}
Which statement is true about the class of an object that can reference the variable base?

1. It can be any class.
2. No class has access to base.
3. The class must belong to the geometry package.
4. The class must be a subclass of the class Hypotenuse.