Create a Correct Child Sealed Class

Sealed types are a new idea for Java developers, let IntelliJ IDEA guide you in how to create child classes.

Sealed classes (first preview feature in Java 16) are a way to take control of the inheritance hierarchy of our classes. IntelliJ IDEA can let us know about problems in the classes that extend sealed classes, and suggest solutions.

Experiment with Sealed Types, use Alt+Enter (Windows/Linux) to see and accept suggestions.


Related Resources

Convert Class to Record
Convert Class to Record
Use inspections to convert classes to Java 16 records.
Enable Git Staging
Enable Git Staging
Git Staging is an alternative approach to IntelliJ IDEA Changelists.
Create New Class
Create New Class
Quickly add new classes to your project.