Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 entity graph in entity framework?

1059


How route table has been created in asp.net mvc?

936


What is session state management?

960


What is stateless model?

903


Why is the .net framework 3.0 a major version number of the .net framework if it uses the .net framework 2.0 runtime and compiler?

967


What is poco proxy? : Entity framework

1005


What are the 3 main components of an asp.net mvc application?

974


Explain what is the difference between view and partial view?

1013


What is presentation framework?

966


Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?

897


what is entity framework?

1020


Mention some action filters which are used regularly in ASP.Net MVC?

940


How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?

839


How to update one of my table in database at 4pm every day how it is possible?

965


How do I use partial view?

918