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
410 B
Go

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