ExamVeda
Login
Home
Classes and Objects in C Sharp
?

Select the statement which should be added to the current C# code to get the output as 10 20?
class baseclass
{
    protected int a = 20;
}
class derived : baseclass
{
    int a = 10;
    public void math()
    {
         /* add code here */
    }   
}

Answer & Solution
Correct Answer: Option C
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.