1 min readMar 20, 2016
Your example Interface for Polymorphism doesn’t compile
Dog and Frog don’t satisfy the Animal interface.
You have to add this 2 methodes to compile.
func (f *Frog) IsFurry() bool {
return false
}
func (d *Dog) IsFurry() bool {
return false
}