awesome-patterns/creational/abstract_factory/family_car.go

16 lines
183 B
Go
Raw Normal View History

2018-01-14 08:43:41 +03:00
package main
type FamilyCar struct{}
func (*FamilyCar) NumDoors() int {
return 5
}
func (*FamilyCar) NumWheels() int {
return 4
}
func (*FamilyCar) NumSeats() int {
return 5
}