I've got a good strategy for this. I'll eliminate the options that don't make sense, then choose the one that seems most logical. Let me think this through...
Okay, let me break this down. A Block can't be used only inside other Screens, that's option A. And it can't be used only inside other Blocks, that's option B. So I'm leaning towards C or D.
Okay, I think I've got this. The Payment class is an abstract class, so the CreditCardPayment class needs to extend it and override the makePayment method. Option A looks like the correct implementation to me.
Option C makes the most sense to me. Blocks should be able to be used inside other Screens and Blocks, including itself. That's the flexibility I'd expect from a feature like this.
Maryanne
3 months agoGerald
4 months agoArgelia
4 months agoShay
4 months agoVenita
4 months agoCarin
4 months agoFrankie
5 months agoJaime
5 months agoDouglass
5 months agoLizette
5 months agoTheola
5 months agoAnnelle
5 months agoShawana
5 months agoLong
5 months agoMattie
10 months agoFrancene
9 months agoDyan
9 months agoJaney
9 months agoMicaela
10 months agoJenifer
9 months agoJudy
9 months agoBenton
10 months agoCherry
10 months agoEun
11 months agoFreida
11 months agoRose
11 months agoAndra
10 months agoJosephine
10 months agoSilva
11 months ago