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 are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?
which are the key concepts of entity data model?
what are abstract classes? what is overriding?
Does the .NET Framework have in-built support for serialization?
Explain what is routing?
What is entityset? : Entity framework
What is partialview in asp.net mvc?
What are the versions of .net framework?
What is razor code?
Can you explain renderbody and renderpage in asp.net mvc?
What is difference between viewbag and viewdata and tempdata?
How to use Jquery Plugins in ASP.Net MVC validation?