Shortcut Navigation:

Ii Console Write Quiz

Which of the following should be used to implement a 'Like a' or a 'Kind of' relationship between two entities?

Which of the following is the correct way to create an object of the class Sample?

Which of the following statements are correct about Inheritance in C#.NET?
  1. A derived class object contains all the base class data.
  2. Inheritance cannot suppress the base class functionality.
  3. A derived class may not be able to access all the base class data.
  4. Inheritance cannot extend the base class functionality.
  5. In inheritance chain construction of object happens from base towards derived.

Which of the following statements is correct about the C#.NET program given below? namespace IndiabixConsoleApplication{class Baseclass{int i;public Baseclass(int ii){i = ii;Console.Write("Base ");}}class Derived : Baseclass{public Derived(int ii) : base(ii){Console.Write("Derived ");}}class MyProgram{static void Main(string[ ] args){Derived d = new Derived(10);}}}