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 partial classes?
12 Answers Digimaker, HP, N Tech, TCS,
What is the importance of NonActionAttribute?
Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?
What is viewbag?
What was the problem in traditional component why side by side execution is supported in .net ?
Can I add mvc testcases in visual studio express?
Explain the use of Inversion of control (IOC)?
How is method overriding different from method overloading
Briefly describe the roles of clr in .net framework?
What is work of clr?
what is the use of final method
What is gacutil.exe. Where do we store assemblies ?
5 Answers Accenture, BirlaSoft,