READ Free Dumps For Microsoft- 70-483
Question ID 17066 | You need to create a method that can be called by using a varying number of parameters.
What should you use?
|
Option A | derived classes
|
Option B | interface
|
Option C | enumeration
|
Option D | method overloading
|
Correct Answer | D |
Explanation Explanation: Member overloading means creating two or more members on the same type that differ only in the number or type of parameters but have the same name. Overloading is one of the most important techniques for improving usability, productivity, and readability of reusable libraries. Overloading on the number of parameters makes it possible to provide simpler versions of constructors and methods. Overloading on the parameter type makes it possible to use the same member name for members performing identical operations on a selected set of different types.
Question ID 17067 | You are developing an application in C#.
The application uses exception handling on a method that is used to execute mathematical
calculations by using integer numbers.
You write the following catch blocks for the method (line numbers are included for
reference only):
You need to add the following code to the method:
At which line should you insert the code?
|
Option A | 01
|
Option B | 03
|
Option C | 05
|
Option D | 07
|
Correct Answer | A |
Explanation