xxxxxxxxxx
https://www.youtube.com/watch?v=dBwvc-U8q-c&t=1445s watch this video
xxxxxxxxxx
abstract class SealedClass {}
class SubclassA extends SealedClass {
// Implementation of SubclassA
}
class SubclassB extends SealedClass {
// Implementation of SubclassB
}
class SubclassC extends SealedClass {
// Implementation of SubclassC
}