Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def areaOf[A](shape: A)(implicit shapeImpl: Shape[A]): Double = shapeImpl.area(shape)
- areaOf(Circle(10))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement