ExamVeda
Login
Home
Classes and Objects in C Sharp
?

What will be size of the object created depicted by C# code snippet?
class baseclass
{
    private int a;
    protected int b;
    public int c;
}
class derived : baseclass
{
    private int x;
    protected int y;
    public int z;
}
class Program
{
    static Void Main(string[] args)
    {
        derived a = new derived();
    }
}

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.