Last active
March 4, 2019 09:31
-
-
Save samuelorji/9a4efadc9a5208b5d5b49e3ee45008bc to your computer and use it in GitHub Desktop.
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
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