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