nerdexam
Microsoft

98-372 · Question #207

You want to create a method that can accept any data type as arguments. Which feature of .NET languages allows you to create one method that will accept different data types on each call to the…

The correct answer is C. Generics. See the full explanation below for the reasoning.

Question

You want to create a method that can accept any data type as arguments. Which feature of .NET languages allows you to create one method that will accept different data types on each call to the method?

Options

  • AOverriding
  • BDelegates
  • CGenerics
  • DNamed Parameters

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    19% (5)
  • C
    69% (18)
  • D
    8% (2)

Community Discussion

No community discussion yet for this question.

Full 98-372 Practice