This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Method Overriding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Method Overriding" Watch "Method Overriding" New topic
Author

Method Overriding

chintan ramavat
Ranch Hand

Joined: Sep 15, 2006
Posts: 134
Hello Ranchers

I want to know " what method of version will be called if some class with the reference of SUPER class sneak in ", is it going to be subclass version or superclass. " assuming subclass version has not marked PUBLIC.What if it's marked PRIVATE.


Thank you ranchers

chintan ramavat
Atul Sawant
Ranch Hand

Joined: Jul 06, 2006
Posts: 304
Dear Chintan,

It would be really good for you to test the code for yourself and find the answer or else I dont really see any positive side in just giving answers.

kindly let us know if you have any confusion.


Mission SCWCD. Mission SCJP Complete: SCJP 1.4 - 91%
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Method Overriding
 
Similar Threads
PostConstruct and PreDestroy methods can be have any access modifier
Method in parent class....
K & B practice exam question
Doubt with instance variables and methods of the subclass and superclass
K&B p102 not clear