Statements (18)
Predicate | Object |
---|---|
gptkbp:instanceOf |
Programming Language Concept
|
gptkbp:allows |
Controlled class hierarchies
|
gptkbp:benefit |
Better code maintainability
Improved type safety |
gptkbp:enables |
Exhaustive when expressions
|
gptkbp:features |
Object-Oriented Programming
|
gptkbp:hasSyntax |
sealed class Shape in Kotlin
public sealed class Shape permits Circle, Square in Java |
https://www.w3.org/2000/01/rdf-schema#label |
Sealed Classes
|
gptkbp:introducedIn |
gptkb:Java_17
|
gptkbp:purpose |
Restrict class inheritance
|
gptkbp:relatedTo |
Abstract Classes
Enums Final Classes |
gptkbp:usedIn |
gptkb:Java
gptkb:Kotlin |
gptkbp:bfsParent |
gptkb:Java_SE_17
|
gptkbp:bfsLayer |
7
|