Adding a Method Overload5:48 with James Churchill
In this video, we'll review the solution to the second challenge and introduce our third and final challenge—adding a method overload.
- Add a method overload for the
Loan()method that doesn't accept any parameters.
- Update the
GetDisplayText()method to account for when the
Loaneefield doesn't have a value.
Addition Assignment Operator (+=)
For more information about the addition assignment operator (
+=) see https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/addition-assignment-operator.
If you get stuck on any of the following topics or simply need a refresher, click on a topic in list below to view the associated video in the C# Objects course.
You need to sign up for Treehouse in order to download course files.Sign up