Hi,
i would like to call a method defined in an ancestor class from a descendant class but outside of the scope of 'this'. The code below shows clearly what i need. The line with "INVALID!" remark shows the prolematic point. Is that call possible in any way?
Thanks.
public class Sub extends Base { private Sub previous; // implements an one way list @Override public String getName() { Sub sub = this; while (sub.previous!=null) sub = sub.previous; // name is stored only in the first object return sub.super.getName(); // INVALID! } }