Skip to content

Instantly share code, notes, and snippets.

@samuelorji
Last active March 4, 2019 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelorji/9a4efadc9a5208b5d5b49e3ee45008bc to your computer and use it in GitHub Desktop.
Save samuelorji/9a4efadc9a5208b5d5b49e3ee45008bc to your computer and use it in GitHub Desktop.
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