Java Programming/Keywords/extends
From Wikibooks, the open-content textbooks collection
extends is a Java keyword.
Used in class and interface definition to declare the class or interface that is to be extended.
Syntact:
publicclass MyClassextendsSuperClass { ... }publicinterface MyInterfaceextendsSuperInterface { ... }
See also:
In Java 1.5 and later, the "extends" keyword is also used to specify an upper bound on a type parameter in Generics.
class Foo<T extends Number> { ... }