Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data class Circle(val radius: Double) : Shape {
- override fun perimeter() = 2 * PI * radius
- override fun area() = PI * radius * radius
- override fun diameter() = 2 * radius
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement