Statements (20)
| Predicate | Object |
|---|---|
| gptkbp:instanceOf |
gptkb: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 |
| 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:Oracle_JDK_17
gptkb:Java_SE_17 gptkb:JDK_17 |
| gptkbp:bfsLayer |
8
|
| https://www.w3.org/2000/01/rdf-schema#label |
Sealed Classes
|