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.
- Best exam simulation CIW master-ciw-enterprise-developer download free trial.
- Pass SCBCD in first attampt.
- Download free practice test for SUN SCDJWS exam.
- Become SUN SCJA certified.
- Become SUN SCJP certified.
- Become SUN SCJP 5/6 certified.
- Pass SCMAD in first attampt.
- Pass SCWCD in first attampt.
- Become SUN SCJA certified.
- Download free practice test for SUN SCJP 1.4 Upgrade exam.
- Pass SUN CX310-055 - Java 5.0
- Best exam simulation SUN CX310-065 download free trial.
- Download free practice test for CX310-110 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.