Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

Sponsored Links

Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs

Object-oriented language basics, Part 4

Inheritance: Build objects in layers

  • Print
  • Feedback

Page 4 of 10

Overriding methods

A subclass method can override, or replace, a superclass method if the subclass method has the same name, same return type, and same parameter list as its superclass counterpart. Consider the following code fragment:

  • Print
  • Feedback

Resources