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.

17 lines
370 B
Go
Raw Normal View History

2019-03-09 23:38:10 +03:00
package abstract_factory
/**
* Bus is also a subfamliy of Vehicle
* But it has some specific properties
* thus based on these properties has some variations
* Therefore it need it's own factory
*/
type Bus interface {
Vehiche
// As some buses can have multiple floors
// let's consider this is a big difference from
// other vehicles
FloorCount() int
}