This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Banana | |
object Monkey { | |
def eat(bananas: Seq[Banana]) = println("lots of banana") | |
def eat(banana: Banana) = println("one banana") | |
} | |
object Person { | |
def pickBanana = new Banana | |
def pickBananas = List(new Banana, new Banana) |
NewerOlder