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 override,overriding,overriden Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "override,overriding,overriden" Watch "override,overriding,overriden" New topic


Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Dear sir as i know what is overriding. But sir i often get confuse that what is defrence between Override,Overriding, and Overriden? so please clear me answer of this question.

with regard

Arun kumar maalik
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

It sounds more like some English lesson here
You already know what overriding is, so no problem.

To override. ClassA overrides ClassB's method.
Overriding. ClassA is overriding ClassB's method.
Overriden. ClassB's method is overriden by ClassA.

[My Blog]
All roads lead to JavaRanch
Edwin Dalorzo
Ranch Hand

Joined: Dec 31, 2004
Posts: 961
This has little to do with Java programming, but...

Let's see some examples of the use of the words.

The class Lion inherits from the super class Feline. The super class Feline has a method named hunt(). If you want to reimplement that behavior in the class Lion, you have to override the method hunt().

Present Progressive
While you are overriding the method hunt() in the Lion class be careful to comply with the contract stated in the super class method you are overriding.

Perfect Present
Once the method has been overridden run some tests to check that it does not break compatibility with other classes in the hierarchy.

I hope this helps.
[ July 21, 2006: Message edited by: Edwin Dalorzo ]
I agree. Here's the link:
subject: override,overriding,overriden
It's not a secret anymore!