// Homework 29, problem 3: Extend the embedded method. // // Give car its own describe method. It first calls the describe of its // embedded vehicle, then prints " It has four wheels.". Both lines should // appear. // // Run with: go run exercises/29/homework/03-extend.go package main import "fmt" type vehicle struct { name string } func (v vehicle) describe() { fmt.Printf("%s is a vehicle.\n", v.name) } type car struct { vehicle } // TODO: define car's own describe method here, outside main. func main() { // TODO: write your code here, in place of this placeholder line: fmt.Println("TODO: replace this line") }