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

SUPER?

 
manusks sharma
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IN WHAT DIFFERENT CASES IS THE KEYWORD SUPER USED?
 
Nick George
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when you want to access methods overloaded methods from a super class, primarily.
one very common use is in constructers in which you wish to run the super constructer, and then do somthing else, i.e.

The constructer circle would make diameter=d, and we can make spokes=s.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can think of two situations: to access super class members - properties and methods, and to specify a super class constructor to use, as Nick has demonstrated.
This prints the following.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

IN WHAT DIFFERENT CASES IS THE KEYWORD SUPER USED?

Lower case.
Thanks, folks, I'll be here all week. Don't forget to tip your waitress!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic