import Product from "./Product" ; import Visitable from "./Visitable" ; import Visitor from "./Visitor" ; export default class Liquor implements Visitable , Product { price : number ; constructor ( price ) { this . price = price ; } accept ( visitor ) { return visitor . visit ( this ) ; } }