First, greetings to all.
This is only my second message although i have been reading this board for the last couple of weeks.
Although private members are not inherited, it
seems we can still declare the same private
method in a sub-class.
However, it dynamic method look up doesn't get applied.
Example
-------
class
Testing {
public void test() {
pTest();
}
private void pTest() {
System.out.println("In Overriden pTest");
}
public static void main(
String[] args) throws Exception
{
Testing subTest = new SubTesting();
subTest.test();
}
}
Any thoughts on this?