mirror of
https://github.com/crazybber/awesome-patterns.git
synced 2024-11-22 04:36:02 +03:00
16 lines
183 B
Go
16 lines
183 B
Go
|
package main
|
||
|
|
||
|
type LuxuryCar struct{}
|
||
|
|
||
|
func (*LuxuryCar) NumDoors() int {
|
||
|
return 4
|
||
|
}
|
||
|
|
||
|
func (*LuxuryCar) NumWheels() int {
|
||
|
return 4
|
||
|
}
|
||
|
|
||
|
func (*LuxuryCar) NumSeats() int {
|
||
|
return 5
|
||
|
}
|