File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to using the methods of superclass?

 
Ronald.H
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are three classes: A,B,C
code:
------------------------------
class A{
void method(){}
}
class B extends A{
void method(){}
}
public class C extends B{
void method(){}
}
------------------------------
In class C, I can use the method "method()" of B by using "super.method()".
How can i directly use the method "method()" of A except to declare it static??
 
Carlos Failde
Ranch Hand
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy. There was a thread about this one ... found it:
super.super.method()
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ronald.H,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
We'd like display names of the format FIRST_NAME + SPACE + LAST_NAME. We'd also like more than a single character be used for the LAST_NAME.
Thanks Pardner! Hope to see you 'round the Ranch!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic