# Superclass

The class that another class directly extends.

## What is **Superclass** in Java?

**Superclass** — The class that another class directly extends.

```java
class Alert {
    String text() {
        return "Alert";
    }
}

class EmailAlert extends Alert {
    @Override
    String text() {
        return "Email";
    }
}
```

Level: Journeyman · [More Java terms at this level](https://www.ask-codey.com/glossary/subjects/java/journeyman)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/superclass
