What are delegates?where are they used
Answer / 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 |
What is meant by bootstrap in mvc5?
What is the difference between .net core and .net framework?
Is it possible to combine asp.net webforms and asp.mvc and develop a single web application?
How does assembly versioning work?
How we can call a javascript function on the change of a dropdown list in mvc?
Describe the gac in the .net framework.
How route table has been created in asp.net mvc?
how do you mark a property as required? For example, for a project, the name is a required field.
What is the advantage of using asp.net routing?
What is NonActionAttribute ?
How OS come to know whether to load the .net framework when we run an .exe created using .Net framework?
What is RouteConfig.cs in ASP.Net MVC 4?