Sealed classes are used for representing restricted class hierarchies, when a value can have one of the types from a limited set, but cannot have any other type
Formação Java TriadWorks - Java e OO, Android, Java para Web, JSF 2, PrimeFaces e Spring, JPA 2 com Hibernate, TDD e Testes Automatizados. Cursos presenciais com instrutores...