Hey, can you give your opinion about next two vari...
# codereview
e
Hey, can you give your opinion about next two variants:
Copy code
sealed class TransactionPeriod(
   open val interval: Interval,
   open val isMonthly: Boolean
) {
  data class Past(
            override val interval: Interval,
            override val isMonthly: Boolean
    ) : TransactionPeriod(interval, isMonthly)

    data class Current(
            override val interval: Interval,
            override val isMonthly: Boolean
    ) : TransactionPeriod(interval, isMonthly)
}