Question OOP-ABS-0074
HardWhat is the purpose of a sealed interface or class (Java 17)?
- A.
To hide it from other packages
- B.
To restrict which classes may implement or extend it, so all subtypes are known
- C.
To make it final
- D.
To make it immutable
Sign up free to see the answer and a step-by-step explanation.