In a class hierarchy, when the subclass method has the same name and signature as its superclass method, the method in the subclass is said to override the method in the superclass. This phenomenon is known as method overriding.
An example of method overriding is given below:
void show() { }
}
class Subclass extends Superclass {
void show() { }
}
Here, show() is the overridden method.
- Become CIW Master CIW Enterprise Developer certified.
- Get certified in first attempt download scbcd - SCBCD simulation.
- Best exam simulation SUN scdjws download free trial.
- Download free practice test for SUN SCJA exam.
- Get certified in first attempt download scjp - SCJP simulation.
- Get certified in first attempt download scjp-5-0 - SCJP 5/6 simulation.
- Click here to download scmad test study guide and practice question.
- Become SUN SCWCD certified.
- Best exam simulation SUN CX310-019 download free trial.
- Download free practice test for SUN SCJP 1.4 Upgrade exam.
- Become SUN Java 5.0 certified.
- Click here to download CX310-065 test study guide and practice question.
- Download free practice test for SUN SCMAD Mobile Application Developer exam.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.