Skip to content
RED SAGSkills
medium10 pts · first answer countsandroidkotlinsealed-classes

Adding a subclass to a sealed type

A sealed interface PaymentResult has Success and Failed. You add Pending. What happens to a when expression that returns a value and has no else branch?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions