-
Is Strategy Pattern any different than Polymorphism + Encapsulation?
I am not sure if Strategy ( or Policy ) pattern is any different than polymorphism + encapsulation of OOPs.
I am raising this because other patterns like factory , singleton ( simple though very complexed in multi-threaded case ), have something other than language feature. And I believe Pattern should be more than OOPs concept.
Strategy pattern, in my view, is just a use of Polymorphism and obviously better class design would encapsulate it.
Let me know your thoughts on this please.
Similar Threads
-
By Need2CSharp in forum Architecture and Design
Replies: 1
Last Post: 07-28-2007, 08:50 AM
-
By hemanthjava in forum Java
Replies: 2
Last Post: 11-14-2006, 11:57 PM
-
By stoughto in forum Java
Replies: 2
Last Post: 06-11-2006, 09:56 AM
-
By Gwen Smith in forum vb.announcements
Replies: 0
Last Post: 07-21-2003, 02:17 PM
-
By Mike Mitchell in forum .NET
Replies: 60
Last Post: 09-13-2002, 05:41 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|