// Homework 29, problem 2: Replace the method. // // Give car its own describe method that prints " is a car.". Make a // vehicle and a car in main, and confirm that the vehicle still says "vehicle" // and the car says "car". // // Run with: go run exercises/29/homework/02-override.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") }