GeeCON Prague 2014*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes can anyone expain me the keyword super in detain.. ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "can anyone expain me the keyword super in detain.. ?" Watch "can anyone expain me the keyword super in detain.. ?" New topic
Author

can anyone expain me the keyword super in detain.. ?

varinder mahajan
Ranch Hand

Joined: Jun 11, 2008
Posts: 47
can anyone expain me the keyword super in detain.. ?


Beat the world,if you can.......
vittal muvva
Greenhorn

Joined: Sep 01, 2008
Posts: 1
If your method overrides one of it's superclass methods,
you can invoke the overridden method through the use of the keyword super. You can also use super to refer to a hidden field
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

If you know what 'this' keyword do , then 'super' keyword do what 'this' parents do !

'super' held the reference of immediate base class !

This code helps



[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
GeeCON Prague 2014
 
subject: can anyone expain me the keyword super in detain.. ?