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
how can you enhance the performance of entity framework?
What is difference between html.beginform and ajax.beginform?
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
Which are the important namespaces used in mvc?
Explain the role of assembly in the .net framework.
what is entity sql?
What are action filters?
Name a few different return types of a controller action method?
What is web api‘s in asp.net mvc 4 ?
Mention two instances where routing is not implemented or required?
What is objectset? : Entity framework
What are the 3 main components of an asp.net mvc application?
What is entity sql? : Entity framework
What is .net architecture?
Define the core components of an ASP.NET MVC application?