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.
- Click here to download master-ciw-enterprise-developer test study guide and practice question.
- Get certified in first attempt download scbcd - SCBCD simulation.
- Pass SUN scdjws - SCDJWS
- Click here to get free scja SCJA exam practice questions.
- Click here to download scjp test study guide and practice question.
- Pass SCJP 5/6 in first attampt.
- Click here to download scmad test study guide and practice question.
- Click here to download scwcd test study guide and practice question.
- Download free practice test for CX310-019 SCJA exam.
- Get certified in first attempt download CX310-036 - SCJP 1.4 Upgrade simulation.
- Download free practice test for CX310-055 Java 5.0 exam.
- Become SUN SCJP 6.0 certified.
- Best exam simulation SUN CX310-110 download free trial.
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.
