ExamVeda
Login
Home
Delegates and Events in C Sharp
?

Which of the following statements are valid in the following C# code snippet?
public class Generic<T>
{
    public T Field;
    public void testSub()
    {
        T i = Field + 1;
    }
}
class Program
{
    static void Main(string[] args)
    {
        Genericlt;int>g = new Genericlt;int>();
        g.testSub();
    }
}

Answer & Solution
Correct Answer: Option D
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.