You are testing an application. The application includes methods named CalculateInterest and LogLine.
The CalculateInterest() method calculates loan interest. The LogLine() method sends diagnostic messages to a console window.
The following code implements the methods. (Line numbers are included for reference only.)
You have the following requirements:
✑ The Calculatelnterest() method must run for all build configurations.
✑ The LogLine() method must run only for debug builds.
You need to ensure that the methods run correctly.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
StudiousMCSD
Highly Voted 5 years, 7 months agozzMichielzz
Most Recent 4 years, 8 months agommarinov
5 years, 1 month agoKilsimon
4 years, 8 months ago