mirror of
https://github.com/crazybber/awesome-patterns.git
synced 2024-12-02 01:46:02 +03:00
16 lines
239 B
Go
16 lines
239 B
Go
|
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
|
||
|
}
|