import { Topping } from "../AbstractDecorator/ToppingDecorator" ; import { Pizza } from "src/AbstractComponent/Pizza" ; export class Mozzarella extends Topping { constructor ( newPizza ) { super ( newPizza ) ; console . log ( 'Adding Mozzarella To Plain Pizza Created.' ) ; } getCost ( ) { return this . tempPizza . getCost ( ) + 0.5 ; } getDescription ( ) { return this . tempPizza . getDescription ( ) + ', Mozzarella.' ; } }