mirror of
https://github.com/crazybber/awesome-patterns.git
synced 2024-11-23 05:06:01 +03:00
16 lines
234 B
Go
16 lines
234 B
Go
|
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
|
||
|
}
|