aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "override,overriding,overriden" Watch "override,overriding,overriden" New topic
Author

override,overriding,overriden

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é
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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.

Present
---------
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: http://aspose.com/file-tools
 
subject: override,overriding,overriden