This repository has been archived on 2021-09-07. You can view files and clone it, but cannot push or open issues or pull requests.
2019-03-09 23:38:10 +03:00

27 lines
395 B
Go

package abstract_factory
// A group of Bus family
type MicroBus struct{
wheels int
doors int
speed int
floorCount int
// Some CityTourBus specific properties
}
func (c MicroBus) FloorCount() int {
return c.floorCount
}
func (c MicroBus) WheelCount() int {
return c.wheels
}
func (c MicroBus) NumberOfDoors() int {
return c.doors
}
func (c MicroBus) Speed() int {
return c.speed
}