For number 1, I think the
word you are looking for is 'super'.
Have a look at the following code.
class PrivateBase{
private void someMethod(){
System.out.println("Base method called");
}
}
public class PrivateSub extends PrivateBase{
public static void main(
String [] args){
PrivateSub a = new PrivateSub();
System.out.println("Hello");
a.someMethod();
//PrivateBase b = new PrivateBase();
//b.someMethod();
}
void someMethod(){
System.out.println("Sub method called");
}
}
[This message has been edited by kking (edited April 26, 2000).]