import { PizzaStore } from "./Factories/AbstractPizzaStore" ; import { NYPizzaStore } from "./Factories/NYPizzaStore" ; import { ChicagoPizzaStore } from "./Factories/ChicagoPizzaStore" ; import { Pizza } from "./Products/Interface/Pizza" ; const nyStore = new NYPizzaStore ( ) ; const chicagoStore = new ChicagoPizzaStore ( ) ; let pizza = nyStore . orderPizza ( 'cheese' ) ; console . log ( 'NY Pizza : ' , pizza ? pizza . getname ( ) : 'Null Returned.' ) ; pizza = chicagoStore . orderPizza ( 'cheese' ) ; console . log ( 'Chicago Pizza : ' , pizza ? pizza . getname ( ) : 'Null Returned.' ) ;