Skip to main content
2 events
when toggle format what by license comment
Mar 22, 2017 at 8:21 comment added BgrWorker There are a couple of wonky things in your answer (why is the formatter also getting the rate, if it's just a formatter? You could also remove the GetFormattedRate method and just call IRateFormatter.FormatRate(rate)). The basic concept however is correct, and I think too OP should implement its code polymorphicaly if he needs multiple formatting methods.
Mar 22, 2017 at 1:33 history answered Sophie Swett CC BY-SA 3.0