The logic is easy: if a pumpkin is for Halloween, then you need to add a candle.
Inside an outer class Pumpkin create a method void addCandle without parameters, which will do the following:
- if the field
forHalloweenis true, then create a new instance ofCandleand call the methodburning; - if not, print 'We don't need a candle.'
Please, don't use the private access modifier.