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 partial and renderpartial?
What is the advantage of using asp.net routing?
What is the difference between windows vista and .net framework 3.0 ?
Explain JSON Binding?
Explain representational state transfer (rest) in detail?
Which is the root namespace for fundamental types in .net framework?
Explain peek method in tempdata in asp.net mvc?
what is entity framework?
List the new features added in .net framework 4.0.
Explain the difference between Viewbag and Viewdata in ASP.NET MVC?
Can any particular component of .net framework 3.0 be removed?
Why is entity framework used?
What is controllercontext?
Explain covariance and contra-variance in .net framework 4.0. Give an example for each.
Explain how to use multiple submit buttons in ASP.Net MVC?