Java Reference
In-Depth Information
Given:
package org.cadenhead.bureau;
public class Information {
public int duration = 12;
protected float rate = 3.15F;
float average = 0.5F;
}
And:
package org.cadenhead.bureau;
import org.cadenhead.bureau.*;
public class MoreInformation extends Information {
public int quantity = 8;
}
And:
package org.cadenhead.bureau.us;
import org.cadenhead.bureau.*;
public class EvenMoreInformation extends MoreInformation {
public int quantity = 9;
EvenMoreInformation() {
super();
int i1 = duration;
float i2 = rate;
float i3 = average;
}
}
Which instance variables are visible in the EvenMoreInformation class?
a. quantity , duration, rate , and average
b. quantity , duration , and rate
c. quantity , duration , and average
d. quantity , rate , and average
The answer is available on the topic's website at http://www.java21days.com. Visit the
Day 6 page and click the Certification Practice link.
Search WWH ::




Custom Search