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

Download a JDK
Download a JDK
Download or Associate a JDK With Your Project.
Generate constructors and accessor methods
Generate constructors and accessor methods
Quickly generate common code constructs such as Constructors, Getters and Setters.
Generate a UML diagram
Generate a UML diagram
IntelliJ IDEA Ultimate allows you to generate UML diagrams.