import { Pizza } from "../AbstractComponent/Pizza" ; export abstract class Topping extends Pizza { protected tempPizza : Pizza ; constructor ( newPizza ) { super ( ) ; this . tempPizza = newPizza ; } getDescription ( ) { return this . tempPizza . getDescription ( ) ; } getCost ( ) { return this . tempPizza . getCost ( ) ; } }