Specifications

Sun Services
Java™ Programming Language
Module 6, slide 10 of 43
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Overriding Methods
A subclass can modify behavior inherited from a
parent class.
A subclass can create a method with different
functionality than the parent’s method but with the
same:
Name
Return type
1
Argument list
1. In J2SE version 5, the return type can be a subclass of the overridden return type.