51.
What will be the output of the following C# code?
class A
{
    public int i;
    private int j;
}     
class B :A 
{
    void display() 
    {
        base.j = base.i + 1;
        Console.WriteLine(base.i + "  " + base.j);
    }
}    
class Program
{
    static void Main(string[] args)
    {
        B obj = new B();
        obj.i = 1;
        obj.j = 2;
        obj.display();     
        Console.ReadLine();
    }
}

54.
Choose the wrong statement about 'INTERFACE' in C#.NET?

55.
Selecting appropriate method out of number of overloaded methods by matching arguments in terms of number, type and order and binding that selected method to object at compile time is called?

57.
What will be the output of the following C# code?
static void Main(string[] args)
{
    int a = 5;
    int s = 0, c = 0;
    Mul (a, ref s, ref c);
    Console.WriteLine(s + "t " +c);
    Console.ReadLine();
}
static void Mul (int x, ref int ss, ref int cc)
{
    ss = x * x;
    cc = x * x * x;
}

59.
Correct way to overload +operator?

Read More Section(Classes and Objects in C Sharp)

Each Section contains maximum 100 MCQs question on Classes and Objects in C Sharp. To get more questions visit other sections.