extend : Java Glossary
home E words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish 2006-02-23 by Roedy Green ©1996-2008 Canadian Mind Products
Go to : punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
extend
When you derive a class from a base class we say the derived subclass extends the base class. An interface can also extend another interface. In contrast, when a class provides the methods (possibly abstract) necessary to conform to some interface we say that class implements the interface. Extending a class is closely related to implementing an interface. A new class can extend at most one superclass, but it may implement several interfaces.

In interface may extend several other interfaces. You sometimes do this to give you a short same to stand for the requirement implementing half a dozen related interfaces.

Extending means adding new method definitions. Implementing means satisfying the existing interface contract by writing the proscribed method bodies. Logically, when you extend an abstract class and fill in the method bodies, that should be called implementing, but in the Java world that is called extending.


CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.18] The information on this page is for non-military use only.
You are visitor number 53,277. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/extend.html J:\mindprod\jgloss\extend.html