Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

override,overriding,overriden

 
Arun Maalik
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Edwin Dalorzo
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic