import Prototype from "./Prototype" ; export default class Product implements Prototype { name : string ; price : number ; constructor ( name , price ) { this . name = name ; this . price = price ; } clone ( ) { return new Product ( this . name , this . price ) ; } }