Repository URL to install this package:
|
Version:
1.3.7-1 ▾
|
package main
import "fmt"
type BaseClass struct {
x int
y int
}
type AggClass struct {
}
type Rect struct {
BaseClass
Width float64
Height float64
*AggClass
}
func (this *Rect) Area() float64 {
return this.Width * this.Height
}
func main() {
rc := &Rect{Width: 100, Height: 200}
fmt.Println(rc)
}