81.
Which statements among following are correct?

83.
Select the class visibility modifiers among the following:

84.
What will be the output of the following C# code?
namespace ConsoleApplication4
{   
    abstract class A 
    {
        int i;
        public  abstract void display();
    }    
    class B: A 
    {
        public  int j;
        public override void display() 
        {
            Console.WriteLine(j);
        }
    }    
    class Program
    {
        static void Main(string[] args)
        {
            B obj = new B();
            obj.j = 2;
            obj.display();
            Console.ReadLine();
        }
    }
}

85.
What will be the output of the following C# code?
class maths
{
    static maths()
    {
        int s = 8;
        Console.WriteLine(s);
    }
    public  maths(int f)
    {
        int h = 10;
        Console.WriteLine(h);
    }
}
class Program
{
    static void Main(string[] args)
    {
        maths p = new maths(0);
        Console.ReadLine();
    }
}

86.
What will be the output of the following C# code?
enum days:int
{
    sunday = -3,
    monday,
    tuesday
}
Console.WriteLine((int)days.sunday);
Console.WriteLine((int)days.monday);
Console.WriteLine((int)days.tuesday);

88.
Which of the following is the correct way of implementing an interface addition by class maths?

89.
What does the following C# code signify?
class a
{
 
 
 
}
class b : a
{
    variable declaration;
    method declaration;
}

90.
What will be the Correct statement in the following C# code?
interface abc
{
    String FirstName
    {
        get;
        set;
    }
   String LastName
   {
       get;
       set;
   }
   void print();
   void stock();
   int fun();
}

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.