Answer Posted / kirti
A delegate defines a reference type that can be used to encapsulate a method with a specific signature. A delegate instance encapsulates a static or an instance method. Delegates are roughly similar to function pointers in C++; however, delegates are type-safe and secure.
When do you use virtual keyword ?.
When we need to override a method of the base class in the sub class, then we give the virtual keyword in the base class method. This makes the method in the base class to be overridable. Methods, properties, and indexers can be virtual, which means that their implementation can be overridden in derived classes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How we can handle the exception at controller level in ASP.Net MVC?
What is .net framwork?
What is rxjava used for?
What is the benefit of entity framework?
What is the use .Glimpse in ASP.Net MVC
Why to use Html.Partial in ASP.Net MVC?
What is filters in web api?
What are scaffold templates in mvc?
Is mvc 4 supporting windows azure sdk (software development kit) ?
Give an example for authorization filters in an asp.net mvc application?
What is the meaning of unobtrusive javascript? Explain us by any practical example.
what is code first approach?
Explain the methods used to render the views in mvc?
Why should we go for entity framework?
What is net framework 3.0 ?