我应该如何引用 Java 中的 "grandparent" class 的 function/void?

How should I reference to a function/void of the "grandparent" class in Java?

我知道我可以用 super 引用我的 parent class 的 function/void。 但是我的爷爷parent呢? super.super.void/function?

只要您的 class 和 parent class 不覆盖它,您就可以简单地调用它。如果它具有正确的可见性(受保护,public 或者如果您的子 class 在同一个包中甚至 package-private)

假设我们有这样的事情:
A extends B which extends C and C has a method .method()

因此,在这种情况下,B 继承了 C 的所有方法,因此如果 A 想调用 C 中的方法,只需调用 super.method(),这将调用 B.method(),这(如果它没有被覆盖)是 C 继承的方法(显然检查可见性)