File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Method Overriding" Watch "Method Overriding" New topic

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:
subject: Method Overriding
It's not a secret anymore!