The extends keyword is used in a class or interface declaration to indicate that the class or interface being
declared is a subclass of the class or interface whose name follows the extends keyword.
Examples
public class Rectangle extends Polygon
{
}
Comments
Post a Comment