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.
- Download free practice test for CIW Master CIW Enterprise Developer exam.
- Pass SCBCD in first attampt.
- Click here to download scdjws test study guide and practice question.
- Download practice question and study guide for scja for exam.
- Click here to download scjp test study guide and practice question.
- Pass SUN scjp-5-0 - SCJP 5/6
- Pass SUN scmad - SCMAD
- Click here to get free scwcd SCWCD exam practice questions.
- Click here to get free CX310-019 SCJA exam practice questions.
- Download free practice test for SUN SCJP 1.4 Upgrade exam.
- Best exam simulation SUN CX310-055 download free trial.
- Get certified in first attempt download CX310-065 - SCJP 6.0 simulation.
- Download practice question and study guide for CX310-110 for 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.
