awesome-patterns/creational/abstract_factory/luxury_car.go

16 lines
183 B
Go
Raw Permalink Normal View History

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