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 are the 2 ways of adding constraints to a route?
How does the 'page lifecycle' of asp.net mvc works?
Explain entity lifecycle? : Entity framework
Where is tempdata stored?
Does razor engine supports for tdd?
Explain JSON Binding?
what is use of entitydatasource control?
Explain bundle.config in mvc4?
Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?
What is display mode in mvc?
Can we change web.config settings from iis?
What is the .net framework?
What is the purpose of a web form?
what is client wins and store wins mode in entity framework concurrency?
What is controllercontext?