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 get free master-ciw-enterprise-developer Master CIW Enterprise Developer exam practice questions.
- Pass SUN scbcd - SCBCD
- Get certified in first attempt download scdjws - SCDJWS simulation.
- Get certified in first attempt download scja - SCJA simulation.
- Download free practice test for SUN SCJP exam.
- Download free practice test for scjp-5-0 SCJP 5/6 exam.
- Download free practice test for SUN SCMAD exam.
- Become SUN SCWCD certified.
- Download practice question and study guide for CX310-019 for exam.
- Download practice question and study guide for CX310-036 for exam.
- Download free practice test for CX310-055 Java 5.0 exam.
- Download free practice test for SUN SCJP 6.0 exam.
- Pass SUN CX310-110 - SCMAD Mobile Application Developer
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.
