Skip to main content
🐹Goadvanced

Question 1 of 10

package main
import "fmt"
type Animal interface{ Speak() string }
type Dog struct{}
func (d *Dog) Speak() string { return "Woof" }
func main() {
    var d *Dog
    var a Animal = d
    fmt.Println(a == nil)
}

What's the output?

Tech School/Quiz/Go (Advanced)