C#.NET Interview questions


Total available count: 70
Subject - Microsoft Technologies
Subsubject - C#.NET

Explain about Method Overriding?

If a method of parent class is redefined in the derived class with same signature then the base class method should be overridden with derived class method. Following example will explain about Method Overriding in better way,

Example:
class Slightbook_InterviewQuestions
{
  public virtual void InterviewQuestions()
  {
    //Implementation goes here
  }
}
class Slightbook_MultipleChoices:Slightbook_InterviewQuestions
{
  public override void InterviewQuestions()
  {
     //Implementation goes here
  }
}

 




Next 5 interview question(s)

1
Explain about Inheritance based overloading?
2
Explain about Enumerations in C#.NET?
3
Explain about Generics in C#.NET?
4
Differences between Properties and Indexers in C#.NET?
5
Explain about Indexers in C#.NET?