Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- implicit val circleShape = new CircleShape
- implicit val rectangleShape = new RectangleShape
- areaOf(Circle(10))
- areaOf(Rectangle(5, 5))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement