0
Extract Method
Looking at your problem code:
void PrintOwing() { this.PrintBanner(); // Print details. Console.WriteLine("name: " + this.name); Console.WriteLine("amount: " + this.GetOutstanding()); }
Love your course. Apologies, I'm a newbie, using C#. Respectfully, wondering why it is named PrintBanner(), which I didn't really understand, instead of calling it PrintDetails()? Wondering if there is a reason not to refactor again into PrintName() and PrintOutstandingAmount()? So maybe my question is how far down do you go? Is there a good reason to stop at a specific point and not go further? Thank you.
Servicio de atención al cliente por UserEcho