package main
import "fmt"
type Computer interface {
Calculator
Play(string) string
}
type Calculator interface {
Open(string) Calculator
Say() string
Add(uint, uint)
Sum(int, int) int
}
type TOM struct {
Name string
Age int
Bob *BOB
}
type BOB struct {
TOM
MyName string
}
func (t *TOM) Open(s string) Calculator {
return t
}
func (t *TOM) Say() string {
return "I am " + t.Name
}
func (t *TOM) Add(a, b uint) {
fmt