awesome-patterns/creational/abstract_factory/sport_motorbike.go

16 lines
234 B
Go
Raw Normal View History

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