Microsoft
98-372 · Question #113
98-372 Question #113: Real Exam Question with Answer & Explanation
Sign in or unlock 98-372 to reveal the answer and full explanation for question #113. The question stem and answer options stay visible for context.
Question
You are creating an application using .NET Framework 4.0. You write the following code segment in the application. class CompGenerate <T> where T : IComparable { public T t1; public T t2; public CompGenerate(T _t1, T _t2) { t1 = _t1; t2 = _t2; } } Given the above class declaration, which of the following constructors is correct?
Options
- ACompGenerate<float> gen = new CompGenerate<float>();
- BCompGenerate gen = new CompGenerate(10.125, 2005);
- CCompGenerate<double> gen = new CompGenerate<double>(10.125, 2005);
- DCompGenerate<double, float> gen = new CompGenerate<double, float>(20.125, 10.525);
Unlock 98-372 to see the answer
You've previewed enough free 98-372 questions. Unlock 98-372 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.