give the feature of .net2.0 over .net1.1

Answer Posted / encapsulation

(I) Can you explain strategy pattern?

Strategy pattern are algorithms inside a class which can be
interchanged depending on the class used. This pattern is
useful when you want to decide on runtime which algorithm
to be used.

Let's try to see an example of how strategy pattern works
practically. Let's take an example of a math's calculation
where we have strategies like add and substract.
Figure 'Strategy in action' shows the same in a pictorial
format. It takes two numbers and the depending on the
strategy it gives out results. So if it's an addition
strategy it will add the numbers, if it's a substraction
strategy it will give the substracted results. These
strategies are nothing but algorithms. Strategy pattern are
nothing but encapsulation of algorithms inside classes.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is datacontrols?

3375


Possible ways to prevent xss attacks on mvc application?

751


What are Non Action methods in ASP.Net MVC?

786


What are the new enhancements done in default project template of asp.net mvc 4?

775


Explain the types of Scaffoldings.

820


What are the sub types of ActionResult?

799


What is session state management?

755


What is edm in entity framework?

727


What is the advantage of mvc?

795


What is Attribute Routing in ASP.Net MVC?

775


Explain something about model, view and controllers in asp.net mvc?

749


mention in what all scenarios entity framework can be applicable?

1164


What is presentation framework?

733


Explain the new features added in version 4 of mvc (mvc4)?

752


In Server how to check whether model has error or not in ASP.Net MVC

854