Skip to content

Instantly share code, notes, and snippets.

@samuelorji
Last active March 4, 2019 09:31
Embed
What would you like to do?
def speakLikeHuman(p :Parrot)(implicit humanTendency: HumanTendency[Parrot]) : String = {
humanTendency.makeHumanLike(p)
}
println ( speakLikeHuman(parrot) ) // prints out ---------> I am Casey, the sound i make is prrrrr,and i can talk like a human :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment