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 web api‘s in asp.net mvc 4 ?
what do you mean by navigation property?
How to return the JSON from action method in ASP.Net MVC?
Explain the advantages of asp.net mvc over asp.net?
Explain what languages does the .net framework support?
What is RouteConfig.cs in ASP.Net MVC 4?
Is .net framework 4.8 the last version?
what do you mean by table-per-hierarchy?
What is difference between html.beginform and ajax.beginform?
how can you tell ef to have a different table or column name than that defined for the class?
What is action methods in web api?
Explain the request flow in asp.net mvc framework?
What is presentation framework?
What are the 2 ways of adding constraints to a route?
What are Scaffold templates in ASP.Net MVC?