File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Inheritance Query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Inheritance Query" Watch "Inheritance Query" New topic

Inheritance Query

Aum Tao
Ranch Hand

Joined: Feb 14, 2006
Posts: 210

Now, I would like to know what you think about the above code, and whether which abc() will get called, and how? as I am finding it hard to understand this code if the over ridden method is declared private.

SCJP 1.4 85%
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Why not put some System.out.println() statements in those methods? Or do you prefer the Zen approach?

There is no emoticon for what I am feeling!
I agree. Here's the link:
subject: Inheritance Query
It's not a secret anymore!