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
What is the difference between viewbag and viewdata in mvc?
What is action methods in web api?
How can we determine action invoked from HTTP GET or HTTP POST?
Explain .Net Framework? Why we use it?
What is main objective of asp.net mvc 4 or what is new in mvc4 ?
mention what is code first approach and model first approach in entity framework?
What is meant by bootstrap in mvc5?
Explain the role of assembly in the .net framework.
When will the .net framework 3.0 be released?
How route table has been created in asp.net mvc?
What are the components required to create a route in ASP.Net MVC?
What is basic authentication in web api?
How we can multiple submit buttons in ASP.Net MVC
Are there any parts of the .net framework 3.0 that only work on windows vista?
What are Model Binders in ASP.Net MVC?