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

19 lines
397 B
Go

package abstract_factory
/**
* Car is 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 Car interface {
// Just embeding Vehicle interface
// in order to extend from it
Vehiche
// Let's assume this property belongs to
// only Car type vehicles
HasElectricEngine() bool
}