Task

Create an enumeration of constants with and without explicit values.




sealed abstract class Fruit
case object Apple extends Fruit
case object Banana extends Fruit
case object Cherry extends Fruit
 