package main import "fmt" // TODO: define Speaker interface with Speak() string // TODO: define Dog struct and implement Speak() returning "Woof" func main() { var s Speaker = Dog{} fmt.Println(s.Speak()) }
Output
Click Run to execute, or Check to validate.
Community Chat
Ask a question β uByte AI answers instantly
Loading messagesβ¦
Sign in to ask questions
Shift+Enter for new line Β· Enter to send