There are many, many bad ideas in the following code:
package supersuper;
import static java.lang.System.out;
interface Human {
String x();
}
class Person implements Human {
public String designation; //bad idea
Person() {
designation = x();
}
@Override
public String x() {
return "Person";
}
}
class Student extends Person {
Student() {
super();
}
@Override
public String x() {
return "Student";
}
}
class TeachingAssistant extends Student {
TeachingAssistant() {
super();
}
}
public class SuperSuper {
public static void main(String[] args) {
TeachingAssistant ta = new TeachingAssistant();
out.println(ta.designation);
}
}
dunno what you want, really. Post some code as a starting point for some context. But, no, you cannot invoke super.super.x() as per the comments.
I only present this to you get you started to refine your question.