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 renderbody?
What are differences between entity framework and l2s? : Entity framework
Can you explain model, controller and view in mvc?
What is the full form of sp?
Is it possible to create a custom filter?
Does razor engine supports for tdd?
Is .net core faster than .net framework?
What is viewbag title?
Explain something about model, view and controllers in asp.net mvc?
What are Code Blocks in Views?
What is stateless model?
What is the use of razor view engine?
How we can invoke child actions in ASP.Net MVC?
What are the new enhancements done in default project template of asp.net mvc 4?
What is difference between viewbag and viewdata and tempdata?