kotlin enum method
// jdk 1.7 style enum class Formula { POWER { override fun calculate(n: Long): Long { return n * n; } // unwanted method override fun calculate(n: Long, m: Long): Double { return 0.0 } }, GAUSE { override fun calculate(n: Long): Long { return (1 + n) * (n / 2) } // unwanted method override fun calculate(n: Long, m: Long): Double { return 0.0 } }, PYTHAGORAS { override fun calculate(n: Long, m: L..