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.
- Best exam simulation SUN scbcd download free trial.
- Click here to get free scdjws SCDJWS exam practice questions.
- Pass SCJA in first attampt.
- Get certified in first attempt download scjp - SCJP simulation.
- Download practice question and study guide for scjp-5-0 for exam.
- Click here to get free scmad SCMAD exam practice questions.
- Download free practice test for scwcd SCWCD exam.
- Pass SUN CX310-019 - SCJA
- Become SUN SCJP 1.4 Upgrade certified.
- Best exam simulation SUN CX310-055 download free trial.
- Best exam simulation SUN CX310-065 download free trial.
- Become SUN SCMAD Mobile Application Developer certified.