PrepAway - Latest Free Exam Questions & Answers

Which code segment should you use?

You are developing an application for a bank. The application includes a method named ProcessLoan that
processes loan applications. The ProcessLoan() method uses a method named CalculateInterest. The
application includes the following code:
You need to declare a delegate to support the ProcessLoan() method.
Which code segment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
Option A

B.
Option B

C.
Option C

D.
Option D

3 Comments on “Which code segment should you use?

  1. petro says:

    static decimal CalculateInterest(decimal amount, decimal rate,int term)
    {
    return amount * rate * term;
    }
    static decimal ProcessLoan()
    {
    CalculateLoanInterest loanInterestProcessor = CalculateInterest;
    return loanInterestProcessor(4500m, 0.065m, 4);
    }




    2



    0

Leave a Reply