awesome-patterns/creational/abstract_factory/cruise_motorbike.go

16 lines
239 B
Go
Raw Permalink Normal View History

2018-01-14 08:43:41 +03:00
package main
type CruiseMotorbike struct{}
func (s *CruiseMotorbike) NumWheels() int {
return 2
}
func (s *CruiseMotorbike) NumSeats() int {
return 2
}
func (s *CruiseMotorbike) GetMotorbikeType() int {
return CruiseMotorbikeType
}